remove dead code
This commit is contained in:
parent
fb57a60666
commit
686bc091ba
@ -58,23 +58,6 @@ ECDSA.prototype.calci = function() {
|
||||
ECDSA.fromString = function(str) {
|
||||
var obj = JSON.parse(str);
|
||||
return new ECDSA(obj);
|
||||
|
||||
if (obj.hashbuf) {
|
||||
this.hashbuf = new Buffer(obj.hashbuf, 'hex');
|
||||
}
|
||||
if (obj.pubkey) {
|
||||
this.pubkey = PublicKey.fromString(obj.pubkey);
|
||||
}
|
||||
if (obj.privkey) {
|
||||
this.privkey = PrivateKey.fromString(obj.privkey);
|
||||
}
|
||||
if (obj.sig) {
|
||||
this.sig = Signature.fromString(obj.sig);
|
||||
}
|
||||
if (obj.k) {
|
||||
this.k = BN(obj.k, 10);
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
ECDSA.prototype.randomK = function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user