mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
Update bip-0137.mediawiki
This commit is contained in:
parent
bebffb6ac8
commit
c823bb0638
@ -64,7 +64,6 @@ To verify a signature, the recId is obtained by subtracting this constant from t
|
|||||||
|
|
||||||
Note: this code is a modification of the BitcoinJ code which is written in java.
|
Note: this code is a modification of the BitcoinJ code which is written in java.
|
||||||
|
|
||||||
<code>
|
|
||||||
public static ECKey signedMessageToKey(String message, String signatureBase64) throws SignatureException {
|
public static ECKey signedMessageToKey(String message, String signatureBase64) throws SignatureException {
|
||||||
byte[] signatureEncoded;
|
byte[] signatureEncoded;
|
||||||
try {
|
try {
|
||||||
@ -113,7 +112,6 @@ Note: this code is a modification of the BitcoinJ code which is written in java.
|
|||||||
throw new SignatureException("Could not recover public key from signature");
|
throw new SignatureException("Could not recover public key from signature");
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
</code>
|
|
||||||
|
|
||||||
==Backwards Compatibility==
|
==Backwards Compatibility==
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user