Browse Source

Merge pull request #405 from jsantirso/patch-1

Update 1.5.x hdnode.js
Daniel Cousens 10 years ago
parent
commit
f7c2c78902
  1. 1
      src/hdnode.js

1
src/hdnode.js

@ -44,6 +44,7 @@ function HDNode (K, chainCode, network) {
} else if (K instanceof ECKey) { } else if (K instanceof ECKey) {
assert(K.pub.compressed, 'ECKey must be compressed') assert(K.pub.compressed, 'ECKey must be compressed')
this.privKey = K this.privKey = K
this.pubKey = K.pub
} else if (K instanceof ECPubKey) { } else if (K instanceof ECPubKey) {
assert(K.compressed, 'ECPubKey must be compressed') assert(K.compressed, 'ECPubKey must be compressed')
this.pubKey = K this.pubKey = K

Loading…
Cancel
Save