Hex private keys now work with Bitcoin.Key
This commit is contained in:
parent
3d3421ce17
commit
5377f0746f
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ var ECKey = function (input) {
|
|||
} else {
|
||||
// hex string?
|
||||
// Prepend zero byte to prevent interpretation as negative integer
|
||||
this.priv = BigInteger.fromByteArrayUnsigned(Crypto.util.hexToBytes(input));
|
||||
this.priv = BigInteger.fromByteArrayUnsigned(conv.hexToBytes(input));
|
||||
}
|
||||
}
|
||||
else if (input.constructor == [].constructor) {
|
||||
|
|
Loading…
Reference in a new issue