Browse Source

fixed PrivateKey initialization from JSON

patch-2
Utente 10 years ago
parent
commit
d60d8cf2bc
  1. 3
      lib/privatekey.js

3
lib/privatekey.js

@ -247,9 +247,10 @@ PrivateKey._transformJSON = function(json) {
json = JSON.parse(json);
}
var bn = new BN(json.bn, 'hex');
var network = Networks.get(json.network);
return {
bn: bn,
network: json.network,
network: network,
compressed: json.compressed
};
};

Loading…
Cancel
Save