This application is built with Node.js/Typescript to demonstrate the usage of the package. Please note that you will also need to have the latest didPass-Wallet application on your phone to test the demo application. you can download the latest apk .
Also, to perform verification, you will need to already have credentials in your wallet. So, to use this demo, you must first claim credentials through the .
Prerequisites
(Optional, if you run this application on windows)
(Optional, if you run this application on windows or mac)
ngrok is needed as the wallet needs to communicate with the verifier application on your local
Installation
To ensure a smooth experience with the demo, we recommend running it within a WSL (Windows Subsystem for Linux) environment or Docker container. If you are not able to use WSL to run the demo, follow .
Initiate new terminal on didpass-demo/verifier-demo repository
Run the following command on terminal
ngrok http 3002
Running in Docker Container
In the event, you are not able to run the demo through npm run dev, we also provide an easy way to start the application inside a Docker container. To do this, follow the following guide:
Make sure the Docker engine is installed and running
Run docker compose through the pre-defined npm command, and wait until it finishes
npm run compose:up
Once it is done, the container should automatically be started and exposed to port 3002
Testing the Verifier Demo
Click on the Start Demo button
Read through the Introduction sections until you reach the Start Verification page.
Click on the Retrieve QR Code button and wait until the QR code is generated
Scan the QR code using the wallet
In the wallet, press confirm and continue to start generating proof
Every few seconds, the demo will automatically check the status of the verification process
If the verification process is completed (until proof verification), you will be redirected to the results page
If you encounter any error while testing Verifier Demo, please refresh the page and start the demo from the beginning
Modifying the Verifier Demo
Adding more use cases
To add a new use case, you need to add to the following places:
Modify proof validator
Code Snippets
Generate QR Code
Import the necessary classes from the SDK
import { Verifier, GenerateQrCodeDTO } from "@didpass/verifier-sdk";
Initialize Verifier instance to generate the QR code