Present a Verifiable Credential
Last updated
Was this helpful?
Last updated
Was this helpful?
Using the /present-proof-2.0
API endpoints, it is possible to present Verifiable Credentials, signed by a cheqd DID, in a few clicks or lines of code. This process enables secure and trustworthy sharing of verifiable credentials within the ACA-Py framework and cheqd ecosystem.
Use any supported method to create a connection with the Holder. Automated out-of-band protocol is recommended. You can follow the same steps as described in Issue a Verifiable Credential.
After connection is established, the Verifier can send a proof request to the Holder.
The request body will depend on the credential, but here is a sample.
Holder can get the stored credentials from own wallet and format a proof to send to the Verifier.
Verifier receives the presentation via the connection, and can use the following API to verify. The response must have verified: true
.
Whether to remove the presentation exchange record on completion (overrides --preserve-exchange-records configuration setting)
Verifier choice to auto-verify proof presentation
false
Connection identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Whether to trace event (default false)
false
Prover choice to auto-present proof as verifier requests
false
Verifier choice to remove this presentation exchange record when complete
false
Verifier choice to auto-verify proof presentation
Attachment content by format for proposal, request, and presentation
Connection identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Time of record creation
"2021-12-31T23:59:59Z"
^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$
Error message
"Invalid structure"
Present-proof exchange initiator: self or external
"self"
Presentation message
Presentation exchange identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Presentation proposal message
Presentation request message
Present-proof exchange role: prover or verifier
"prover"
Present-proof exchange state
Thread identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Record trace information, based on agent configuration
Time of last record update
"2021-12-31T23:59:59Z"
^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$
Whether presentation is verified: 'true' or 'false'
"true"
Presentation exchange identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
Presentation specification for anoncreds
Whether to remove the presentation exchange record on completion (overrides --preserve-exchange-records configuration setting)
Optional Presentation specification for DIF, overrides the PresentationExchange record's PresRequest
Presentation specification for indy
Record trace information, based on agent configuration
Prover choice to auto-present proof as verifier requests
false
Verifier choice to remove this presentation exchange record when complete
false
Verifier choice to auto-verify proof presentation
Attachment content by format for proposal, request, and presentation
Connection identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Time of record creation
"2021-12-31T23:59:59Z"
^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$
Error message
"Invalid structure"
Present-proof exchange initiator: self or external
"self"
Presentation message
Presentation exchange identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Presentation proposal message
Presentation request message
Present-proof exchange role: prover or verifier
"prover"
Present-proof exchange state
Thread identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Record trace information, based on agent configuration
Time of last record update
"2021-12-31T23:59:59Z"
^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$
Whether presentation is verified: 'true' or 'false'
"true"
Presentation exchange identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
Prover choice to auto-present proof as verifier requests
false
Verifier choice to remove this presentation exchange record when complete
false
Verifier choice to auto-verify proof presentation
Attachment content by format for proposal, request, and presentation
Connection identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Time of record creation
"2021-12-31T23:59:59Z"
^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$
Error message
"Invalid structure"
Present-proof exchange initiator: self or external
"self"
Presentation message
Presentation exchange identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Presentation proposal message
Presentation request message
Present-proof exchange role: prover or verifier
"prover"
Present-proof exchange state
Thread identifier
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Record trace information, based on agent configuration
Time of last record update
"2021-12-31T23:59:59Z"
^\d{4}-\d\d-\d\d[T ]\d\d:\d\d(?:\:(?:\d\d(?:\.\d{1,6})?))?(?:[+-]\d\d:?\d\d|Z|)$
Whether presentation is verified: 'true' or 'false'
"true"