Browse Source

Let ECKeys be constructed from ECKeys

hk-custom-address
vub 11 years ago
parent
commit
7684c3f705
  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

@ -21,6 +21,8 @@ var ECKey = function (input) {
// Generate new key
var n = ecparams.getN();
this.priv = ecdsa.getBigRandom(n);
} else if (input instanceof ECKey) {
this.priv = input.priv;
} else if (input instanceof BigInteger) {
// Input is a private key value
this.priv = input;

Loading…
Cancel
Save