masterkey: fix fromKeyRaw.
This commit is contained in:
parent
c71039d87c
commit
896ffdd3f5
@ -500,7 +500,7 @@ MasterKey.prototype.toKeyRaw = function toKeyRaw() {
|
|||||||
MasterKey.prototype.fromKeyRaw = function fromKeyRaw(data) {
|
MasterKey.prototype.fromKeyRaw = function fromKeyRaw(data) {
|
||||||
var br = new BufferReader(data);
|
var br = new BufferReader(data);
|
||||||
|
|
||||||
this.key = HD.fromReader(br);
|
this.key = HD.PrivateKey.fromReader(br);
|
||||||
|
|
||||||
if (br.readU8() === 1)
|
if (br.readU8() === 1)
|
||||||
this.mnemonic = Mnemonic.fromReader(br);
|
this.mnemonic = Mnemonic.fromReader(br);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user