missing modulo operation.
This commit is contained in:
parent
b3e7caada7
commit
9fd46c22fe
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ BIP32key.prototype.ckd = function(i) {
|
||||||
|
|
||||||
if (this.type == 'priv') {
|
if (this.type == 'priv') {
|
||||||
Ikey = Bitcoin.BigInteger.fromByteArrayUnsigned(I.slice(0,32))
|
Ikey = Bitcoin.BigInteger.fromByteArrayUnsigned(I.slice(0,32))
|
||||||
newkey = new key(this.key.priv.add(Ikey))
|
newkey = new key(this.key.priv.add(Ikey).mod(ecparams.getN()))
|
||||||
newkey.compressed = true
|
newkey.compressed = true
|
||||||
fingerprint = util.sha256ripe160(this.key.getPub()).slice(0,4)
|
fingerprint = util.sha256ripe160(this.key.getPub()).slice(0,4)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue