Fixes #78
This commit is contained in:
parent
74ee2f90d0
commit
a1be488d1b
@ -14,7 +14,7 @@ var ecparams = sec("secp256k1");
|
|||||||
|
|
||||||
// input can be nothing, array of bytes, hex string, or base58 string
|
// input can be nothing, array of bytes, hex string, or base58 string
|
||||||
var ECKey = function (input,compressed,version) {
|
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) {
|
if (!input) {
|
||||||
// Generate new key
|
// Generate new key
|
||||||
var n = ecparams.getN();
|
var n = ecparams.getN();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user