masterkey: fix fromKeyRaw.

This commit is contained in:
Christopher Jeffrey 2017-03-12 10:23:49 -07:00
parent c71039d87c
commit 896ffdd3f5
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -500,7 +500,7 @@ MasterKey.prototype.toKeyRaw = function toKeyRaw() {
MasterKey.prototype.fromKeyRaw = function fromKeyRaw(data) {
var br = new BufferReader(data);
this.key = HD.fromReader(br);
this.key = HD.PrivateKey.fromReader(br);
if (br.readU8() === 1)
this.mnemonic = Mnemonic.fromReader(br);