Merge pull request #405 from jsantirso/patch-1

Update 1.5.x hdnode.js
This commit is contained in:
Daniel Cousens 2015-05-07 11:18:54 +10:00
commit f7c2c78902

View File

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