Issue-store-verify sample flow
This flow refers to Postman, but the general steps are the same however you use the API. The Issue Store Verify collection includes the scripts that automatically propagate results into the next request bodies when you follow the below steps.
Download the sample collection here.
To issue a credential and or a presentation on the holder's behalf, the following steps are required:
1. Create a DID
To create a new DID to issue with, go to Create DID and click Send. The id property denotes a job ID in the system that you can use to query for blockchain transaction status.
The Truvera API supports did:cheqd and did:key method creation.
2. Update the DID
To add information about your Organization to the DID, e.g. name and logo, you will need to update the DID profile.
3. Create a schema
To issue a credential you will need to set a schema that will define which attributes need to be included in the credential.
4. Issue a verifiable credential
To create a Verifiable Credential using the the new issuer DID, update Issuer with the DID you have created in the first step and add the required information to the attributes. It will return a Verifiable Credential that conforms to the W3C spec.
5. Import the credential into the wallet
Download Truvera wallet and click on the email link that was sent when issuing the credential. If not using the email distribution download the json of the credential an import it to the wallet using the json import option.

5. Create a proof template
To verify a credential you will need a verification template, that will indicate which attributes need to be fulfilled for successful verification. Verification templates can be reused.
6. Create a proof request
Using the verification template created in the previous step in the endpoint POST/proof-templates/{id}/ request a single use proof request will be created.
7. Verify the presentation
Scan the QR code from the proof presentation using your wallet to verify the credential.
Last updated
Was this helpful?