PREREQUISITES: POLYGON ID APP MUST BE DOWNLOADED IN PROVER'S DEVICE AND IT MUST HAVE A VERIFIABLE CREDENTIAL ISSUED BY ISSUER
How to run the project?
- npm install
- On VSCode Terminal npm run dev
- On Mac terminal ngrok http 3000 (for localhost:3000)
- Update the NEXT_PUBLIC_DEVELOPMENT_URL in the .env.local file with your ngrok "Forwarding" URL seen on Mac terminal
- Scan the QR code from the Polygon ID app to kick off the verification process. PROVER HAS TO PROVE HE/SHE IS BORN BEFORE 1 JAN 2023 WITHOUT SHOWING HIS ACTUAL CREDENTIAL. ZK PROOF IS AUTOMATICALLY CREATED
Before Verification : Status is "Not Verified"
For verification, one has to open Polygon ID App on their device having a valid verifiable credential & scan the QR Code below, after that prover will be asked to choose the required verifiable crendential issued by a issuer. A ZK-Proof of this verifiable credential will be generated & thus verification will be done. After successful verification, the status changes to "Verified" as shown in figure below:
NOTE: This project works on polygon mumbai testnet, but it can also work on polygon mainnet.