Browse Source

WalletKey: internalize external JSON database object

patch-2
Jeff Garzik 12 years ago
parent
commit
2430bde72e
  1. 6
      WalletKey.js

6
WalletKey.js

@ -31,6 +31,12 @@ function ClassSpec(b) {
return obj;
};
WalletKey.prototype.fromObj = function(obj) {
this.created = obj.created;
this.privKey = new KeyModule.Key();
this.privKey.private = new Buffer(obj.priv, 'hex');
};
return WalletKey;
};
module.defineClass(ClassSpec);

Loading…
Cancel
Save