crypto / org.apache.tuweni.crypto / SECP256K1 / verifyHashed

verifyHashed

static fun verifyHashed(hash: Bytes32, signature: Signature, publicKey: PublicKey): Boolean (source)
static fun verifyHashed(hash: ByteArray, signature: Signature, publicKey: PublicKey): Boolean (source)

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

Parameters

hash - The keccak256 hash of the data to verify.

signature - The signature.

publicKey - The public key.

Return
True if the verification is successful.