From ea0ee1b687a6a76075849e0c155480a1e87ae493 Mon Sep 17 00:00:00 2001 From: "Ryan X. Charles" Date: Sun, 24 Aug 2014 14:26:17 -0700 Subject: [PATCH] add info on public key recovery --- lib/ecdsa.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ecdsa.js b/lib/ecdsa.js index 48117f1a2..6c90e162d 100644 --- a/lib/ecdsa.js +++ b/lib/ecdsa.js @@ -57,6 +57,9 @@ ECDSA.prototype.randomK = function() { return this; }; +// Information about public key recovery: +// https://bitcointalk.org/index.php?topic=6430.0 +// http://stackoverflow.com/questions/19665491/how-do-i-get-an-ecdsa-public-key-from-just-a-bitcoin-signature-sec1-4-1-6-k ECDSA.prototype.sig2pubkey = function() { var i = this.sig.i; if (!(i === 0 || i === 1 || i === 2 || i === 3))