Verify a Verifiable Presentation
Verify a Verifiable Presentation, signed by a did:cheqd Decentralized Identifier (DID) and a did:key DID, using Veramo.
This tutorial offers step-by-step guidance on how to verify a Verifiable Presentation.
⚠️ Before you begin...
Make sure you've correctly configured the cheqd plugin's agent settings for Veramo CLI
Instructions
The cryptographic verification in this tutorial will be based on JWT proof of a previously-created Verifiable Presentation.
1. Call Veramo's presentation verify function
presentation verify functionIf you have the generated Verifiable Presentation stored, pass it to the presentation verify function:
cat pres.txt | veramo presentation verify2. Check verification output
If the verification is successful, you'll receive this response:
Presentation verified successfully🤨 Troubleshoot verifying JWT presentations
If you belive you did everything right(created a verifiable presentation and you did not tamper it), and for some reason you're getting
Presentation could not be verifiedYou can fix it the following way
First, make sure you are using a
nodewith version16or above.Second, Change veramo cli version to
@veramo/cli@latest -gas previous versions cause few issues in verification. This will override the previous version you have installed.
npm i @veramo/cli@latest -gRun command below to verify your JWT presentation.
veramo presentation verify -r <enter-the-JWT-here>Last updated
Was this helpful?