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

verifyHashed

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

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

Parameters

hash - Bytes32!: The keccak256 hash of the data to verify.

signature - Signature!: The signature.

publicKey - PublicKey!: The public key.

Return
Boolean: True if the verification is successful.

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 - ByteArray!: The keccak256 hash of the data to verify.

signature - Signature!: The signature.

publicKey - PublicKey!: The public key.

Return
Boolean: True if the verification is successful.