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

verify

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

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

Parameters

data - ByteArray!: The data to verify.

signature - Signature!: The signature.

publicKey - PublicKey!: The public key.

Return
Boolean: True if the verification is successful.

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 - Bytes!: The data to verify.

signature - Signature!: The signature.

publicKey - PublicKey!: The public key.

Return
Boolean: True if the verification is successful.