public static class Crypto.ECDSA.Secp256k1
extends java.lang.Object
| Constructor and Description |
|---|
Secp256k1() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkMultiSig(byte[] message,
byte[][] pubKey,
byte[][] signature)
Verifies if the given ECDSA signatures were produced from the given message and
public keys using the secp256k1 curve.
|
static boolean |
verify(byte[] message,
byte[] pubKey,
byte[] signature)
Verifies if the given ECDSA signature was produces from the given message and public
key using the secp256k1 curve.
|
public static boolean verify(byte[] message,
byte[] pubKey,
byte[] signature)
message - The signed messagepubKey - The public key of the signing key pair.signature - The signature created from the message.True, if the signature is correct. False, otherwise.public static boolean checkMultiSig(byte[] message,
byte[][] pubKey,
byte[][] signature)
message - The signed messagepubKey - The public keys of the signing key pairs.signature - The signatures created from the message.True, if the signatures are correct. False, otherwise.