Browse Source

Allow constructing HDNode from an ECPubKey.

hk-custom-address
Sjors Provoost 10 years ago
parent
commit
8a38a24b9f
  1. 2
      src/hdnode.js

2
src/hdnode.js

@ -43,6 +43,8 @@ function HDNode(K, chainCode, network) {
if (K instanceof BigInteger) {
this.privKey = new ECKey(K, true)
this.pubKey = this.privKey.pub
} else if (K instanceof ECPubKey) {
this.pubKey = K
} else {
this.pubKey = new ECPubKey(K, true)
}

Loading…
Cancel
Save