Skip to main content

Attestation Structure

image

Attestation Structure

When a successful data verification process is completed, the client will receive a zkTLS attestation issued by the attestor. The attestation is defined with the following structure. You may find the attestation structure is a little bit different from the network-based attestation.

  {
"recipient": "YOUR_USER_ADDRESS", // user's wallet address
"request": {
"url": "REQUEST_URL", // request url
"header": "REQUEST_HEADER", // request header
"method": "REQUEST_METHOD", // request method
"body": "REQUEST_BODY" // request body
},
"reponseResolve": [
{
"keyName": "VERIFY_DATA_ITEMS", // the "verify data items" you set in the template
"parseType": "",
"parsePath": "DARA_ITEM_PATH" // json path of the data for verification
}
],
"data": "{ACTUAL_DATA}", // actual data items in the request, stringified JSON object
"attConditions": "[RESPONSE_CONDITIONS]", // response conditions, stringified JSON object
"timestamp": TIMESTAMP_OF_VERIFICATION_EXECUTION, // timestamp of execution
"additionParams": "", // additionParams from zkTLS sdk
"attestors": [ // information of the attestors
{
"attestorAddr": "ATTESTOR_ADDRESS", // the address of the attestor
"url": "https://primuslabs.org" // the attestor's url
}
],
"signatures": [
"SIGNATURE_OF_THIS_VERIFICATION" // attestor's signature for this verification
]
}