Browse Source

Merge pull request #36 from jgarzik/txtool-hacks

WalletKey: internalize external JSON database object
patch-2
Stephen Pair 11 years ago
parent
commit
2a6a973442
  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