Skip to content

sui_verifyZkLoginSignature ​

Read API

Verify a zklogin signature for the given bytes, intent scope and author.

Parameters ​

  • bytes · string · requiredThe Base64 string of bcs bytes for raw transaction data or personal message indicated by intent_scope.
  • signature · string · requiredThe Base64 string of the zklogin signature to verify.
  • intent_scope · ZkLoginIntentScope · requiredThe intent scope, either transaction data or personal message. Used to parse bytes.
  • author · SuiAddress · requiredThe author of the signature.

Result ​

  • ZkLoginVerifyResult · ZkLoginVerifyResult

    • errors · string[] · requiredThe errors field captures any verification error
    • success · boolean · requiredThe boolean result of the verification. If true, errors should be empty.

Example ​

Replace each <param> with a value of the type listed under Parameters.

Request ​

bash
curl https://mainnet-api.inodra.com/v1/jsonrpc \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_verifyZkLoginSignature",
  "params": [
    "<bytes>",
    "<signature>",
    "<intent_scope>",
    "<author>"
  ]
}'

The full-stack Sui data layer.