Present a Verifiable Credential
Present an AnonCreds Verifiable Credential, signed by a did:cheqd Decentralized Identifier (DID), using ACA-Py.
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.
Step 1: Create a Connection with Holder
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.
Step 2: Send Proof Request
After connection is established, the Verifier can send a proof request to the Holder.
Whether to remove the presentation exchange record on completion (overrides --preserve-exchange-records configuration setting)
Verifier choice to auto-verify proof presentation
Connection identifier
3fa85f64-5717-4562-b3fc-2c963f66afa6Whether to trace event (default false)
Sample Request Body
The request body will depend on the credential, but here is a sample.
Step 3: Holder sends Presentation Proof
Holder can get the stored credentials from own wallet and format a proof to send to the Verifier.
Presentation exchange identifier
{"value":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}Pattern: [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
Step 4: Verifier verifies Presentation
Verifier receives the presentation via the connection, and can use the following API to verify. The response must have verified: true .
Presentation exchange identifier
{"value":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}Pattern: [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}Last updated
Was this helpful?