Skip to main content

verifySignature

Verify a signature is from the given author.

Supports all signature types: Ed25519, Secp256k1, Secp256r1, MultiSig, ZkLogin, and Passkey.

Returns successfully if the signature is valid. If the signature is invalid, returns an error with the reason for the failure.

  • message is either a serialized personal message or TransactionData, Base64-encoded.
  • signature is a serialized signature, also Base64-encoded.
  • intentScope indicates whether message is to be parsed as a personal message or TransactionData.
  • author is the signer's address.
verifySignature(
message: Base64!
signature: Base64!
intentScope: IntentScope!
author: SuiAddress!
): SignatureVerifyResult

Arguments

verifySignature.message ● Base64! non-null scalar

verifySignature.signature ● Base64! non-null scalar

verifySignature.intentScope ● IntentScope! non-null enum

verifySignature.author ● SuiAddress! non-null scalar

Type

SignatureVerifyResult object

The result of signature verification.