Browse Source

Fixed ECKey constructor

hk-custom-address
Vitalik Buterin 11 years ago
parent
commit
c8732e5d38
  1. 6
      bitcoinjs-min.js
  2. 2
      src/eckey.js

6
bitcoinjs-min.js

File diff suppressed because one or more lines are too long

2
src/eckey.js

@ -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…
Cancel
Save