summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcgilliard <christopher.gilliard@gmail.com>2019-03-29 20:17:48 -0700
committerGitHub <noreply@github.com>2019-03-29 20:17:48 -0700
commitc6456f1607d0184cdd1b211a718bf38eb0328d7b (patch)
treed885ffaa2bd17729065deffa611e8afd8cb0dcc1
parentc823bb06386c30fd57077c20c9b73aa8da9ba3e9 (diff)
downloadbips-c6456f1607d0184cdd1b211a718bf38eb0328d7b.tar.xz
Update bip-0137.mediawiki
-rw-r--r--bip-0137.mediawiki3
1 files changed, 0 insertions, 3 deletions
diff --git a/bip-0137.mediawiki b/bip-0137.mediawiki
index a88342c..7ef89f4 100644
--- a/bip-0137.mediawiki
+++ b/bip-0137.mediawiki
@@ -88,7 +88,6 @@ Note: this code is a modification of the BitcoinJ code which is written in java.
// JSON-SPIRIT hands back. Assume UTF-8 for now.
Sha256Hash messageHash = Sha256Hash.twiceOf(messageBytes);
boolean compressed = false;
-
// this section is added to support new signature types
if(header>= 39) // this is a bech32 signature
{
@@ -104,9 +103,7 @@ Note: this code is a modification of the BitcoinJ code which is written in java.
compressed = true;
header -= 4;
}
-
int recId = header - 27;
-
ECKey key = ECKey.recoverFromSignature(recId, sig, messageHash, compressed);
if (key == null)
throw new SignatureException("Could not recover public key from signature");