Skip to content

Instantly share code, notes, and snippets.

@martindale
Created July 31, 2014 22:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save martindale/573ef03599bc34f81964 to your computer and use it in GitHub Desktop.
getters / setters for keygen
Key.prototype = {
get public() {
return this._public;
},
set public(k0) {
this._public = k0.toPublic();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment