|
|
@ -136,7 +136,8 @@ HDKey.prototype.deriveChild = function(index) { |
|
|
|
return this.derive(index + 1) |
|
|
|
} |
|
|
|
|
|
|
|
hd.privateKey = ki.toBuffer() |
|
|
|
//if less than 32 bytes, pad with 0's
|
|
|
|
hd.privateKey = ki.toBuffer(32) |
|
|
|
|
|
|
|
// Public parent key -> public child key
|
|
|
|
} else { |
|
|
@ -149,8 +150,6 @@ HDKey.prototype.deriveChild = function(index) { |
|
|
|
return this.derive(index + 1) |
|
|
|
} |
|
|
|
|
|
|
|
//hd.pub = new ECPubKey(Ki, true)
|
|
|
|
//this._publicPoint = Ki
|
|
|
|
hd.publicKey = Ki.getEncoded(true) |
|
|
|
} |
|
|
|
|
|
|
|