Skip to content

Commit c6456f1

Browse files
authored
Update bip-0137.mediawiki
1 parent c823bb0 commit c6456f1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bip-0137.mediawiki

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ Note: this code is a modification of the BitcoinJ code which is written in java.
8888
// JSON-SPIRIT hands back. Assume UTF-8 for now.
8989
Sha256Hash messageHash = Sha256Hash.twiceOf(messageBytes);
9090
boolean compressed = false;
91-
9291
// this section is added to support new signature types
9392
if(header>= 39) // this is a bech32 signature
9493
{
@@ -104,9 +103,7 @@ Note: this code is a modification of the BitcoinJ code which is written in java.
104103
compressed = true;
105104
header -= 4;
106105
}
107-
108106
int recId = header - 27;
109-
110107
ECKey key = ECKey.recoverFromSignature(recId, sig, messageHash, compressed);
111108
if (key == null)
112109
throw new SignatureException("Could not recover public key from signature");

0 commit comments

Comments
 (0)