Verify a Credential using a Callback

Overview

MATTR Platform manages verifications of holder data using a Presentation Request flow. Users holding credentials in their Mobile Wallet can view these requests and choose to respond with a Verifiable Presentation, created from the Credentials they hold.

In the Presentation Request you are able to set a per-transaction Callback URL, once the Platform receives the Holder's Verifiable Presentation it will perform verification checks, including checking for revocation status and then extract the claims. These standardized output will be sent as a JSON body to the defined Callback endpoint, which can be consumed by your system.

Steps

Orchestrating the steps required to verify a Credential using a Callback is non-trivial. This guide will step through how to successfully obtain the Callback response using a localhost, you will need to take the concepts and apply them to your systems.

1. Set up your local environment -- Use some simple tools to allow you to accept and view data posted to the callback.

2. Run Credential Verify using a Callback -- Manually run through all the steps required to create a Presentation Request and obtain data from the wallet.

> You may also use the Verify Credentials using Presentation Request Callbacks sample app to get a hands-on experience of implementing a Node.js Express server to manage the end to end user flow.