We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f87ac58 + 8a38a24 commit 49050f9Copy full SHA for 49050f9
src/hdnode.js
@@ -43,6 +43,8 @@ function HDNode(K, chainCode, network) {
43
if (K instanceof BigInteger) {
44
this.privKey = new ECKey(K, true)
45
this.pubKey = this.privKey.pub
46
+ } else if (K instanceof ECPubKey) {
47
+ this.pubKey = K
48
} else {
49
this.pubKey = new ECPubKey(K, true)
50
}
0 commit comments