From e6a88118aea29af865598c2db21d0884a6a46a2c Mon Sep 17 00:00:00 2001 From: "Ryan X. Charles" Date: Sun, 24 Aug 2014 12:50:21 -0700 Subject: [PATCH] fix error message --- lib/ecdsa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ecdsa.js b/lib/ecdsa.js index 5c2fadb..48117f1 100644 --- a/lib/ecdsa.js +++ b/lib/ecdsa.js @@ -60,7 +60,7 @@ ECDSA.prototype.randomK = function() { ECDSA.prototype.sig2pubkey = function() { var i = this.sig.i; if (!(i === 0 || i === 1 || i === 2 || i === 3)) - throw new Error('signature: i must be equal to 0, 1, 2, or 3'); + throw new Error('i must be equal to 0, 1, 2, or 3'); var e = BN().fromBuffer(this.hashbuf); var r = this.sig.r;