Fixes #78
This commit is contained in:
parent
74ee2f90d0
commit
a1be488d1b
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ var ecparams = sec("secp256k1");
|
|||
|
||||
// input can be nothing, array of bytes, hex string, or base58 string
|
||||
var ECKey = function (input,compressed,version) {
|
||||
if (!(this instanceof ECKey)) { return new ECKey(input,compressed); }
|
||||
if (!(this instanceof ECKey)) { return new ECKey(input,compressed,version); }
|
||||
if (!input) {
|
||||
// Generate new key
|
||||
var n = ecparams.getN();
|
||||
|
|
Loading…
Add table
Reference in a new issue