From 686bc091babfa077a7e7a713f99ffe9fdd51be5a Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 19 Dec 2014 18:54:10 -0300 Subject: [PATCH] remove dead code --- lib/crypto/ecdsa.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/crypto/ecdsa.js b/lib/crypto/ecdsa.js index 9bd10bf..e9060a0 100644 --- a/lib/crypto/ecdsa.js +++ b/lib/crypto/ecdsa.js @@ -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() {