Present a Verifiable Credential
Present a JSON-LD 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; for our citizenship credential, this 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"}Whether to remove the presentation exchange record on completion (overrides --preserve-exchange-records configuration setting)
Record trace information, based on agent configuration
Request Body
For our citizenship credential example, the following is a sample request body.
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 .
Last updated
Was this helpful?