Skip to main content

verifyZkLoginSignature

Verify a zkLogin signature os from the given author.

Returns a ZkLoginVerifyResult where success is true and error is empty if the signature is valid. If the signature is invalid, success is false and error contains the relevant error message.

  • bytes are either the bytes of a serialized personal message, or TransactionData, Base64-encoded.
  • signature is a serialized zkLogin signature, also Base64-encoded.
  • intentScope indicates whether bytes are to be parsed as a personal message or TransactionData.
  • author is the signer's address.
verifyZkLoginSignature(
bytes: Base64!
signature: Base64!
intentScope: ZkLoginIntentScope!
author: SuiAddress!
): ZkLoginVerifyResult!

Arguments

verifyZkLoginSignature.bytes ● Base64! non-null scalar

verifyZkLoginSignature.signature ● Base64! non-null scalar

verifyZkLoginSignature.intentScope ● ZkLoginIntentScope! non-null enum

verifyZkLoginSignature.author ● SuiAddress! non-null scalar

Type

ZkLoginVerifyResult object

The result of the zkLogin signature verification.