Merge pull request #36 from jgarzik/txtool-hacks

WalletKey: internalize external JSON database object
This commit is contained in:
Stephen Pair 2013-10-31 09:36:54 -07:00
commit 2a6a973442
1 changed files with 6 additions and 0 deletions

View File

@ -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);