diff --git a/lib/wallet/masterkey.js b/lib/wallet/masterkey.js index ca96a4b4..33860948 100644 --- a/lib/wallet/masterkey.js +++ b/lib/wallet/masterkey.js @@ -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);