Fixed ECKey constructor
This commit is contained in:
parent
36ce412bcb
commit
c8732e5d38
2 changed files with 4 additions and 4 deletions
6
bitcoinjs-min.js
vendored
6
bitcoinjs-min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,7 @@ var ecparams = sec("secp256k1");
|
|||
|
||||
// input can be nothing, array of bytes, hex string, or base58 string
|
||||
var ECKey = function (input,compressed) {
|
||||
if (!(this instanceof ECKey)) { return new ECKey(input); }
|
||||
if (!(this instanceof ECKey)) { return new ECKey(input,compressed); }
|
||||
if (!input) {
|
||||
// Generate new key
|
||||
var n = ecparams.getN();
|
||||
|
|
Loading…
Add table
Reference in a new issue