crypto / org.apache.tuweni.crypto / SECP256K1 / verify

verify

static fun verify(data: ByteArray, signature: Signature, publicKey: PublicKey): Boolean (source)
static fun verify(data: Bytes, signature: Signature, publicKey: PublicKey): Boolean (source)

Verifies the given ECDSA signature against the message bytes using the public key bytes.

Parameters

data - The data to verify.

signature - The signature.

publicKey - The public key.

Return
True if the verification is successful.