Update 1.5.x hdnode.js
Informed the pubkey when building an HDNode from an ECKey (otherwise, derivation would fail on "this.pubKey.toBuffer()")
This commit is contained in:
parent
7f2f81233a
commit
fc9d2ff2f2
@ -44,6 +44,7 @@ function HDNode (K, chainCode, network) {
|
||||
} else if (K instanceof ECKey) {
|
||||
assert(K.pub.compressed, 'ECKey must be compressed')
|
||||
this.privKey = K
|
||||
this.pubKey = K.pub
|
||||
} else if (K instanceof ECPubKey) {
|
||||
assert(K.compressed, 'ECPubKey must be compressed')
|
||||
this.pubKey = K
|
||||
|
||||
Loading…
Reference in New Issue
Block a user