Skip to content

A react frontend where a service provider / verifier like a car rental company creates a credential share request JWT token in the form of a URL/QR code. VC Holder uses that URL to create a Verifiable Presentation (VP) and send it via a credential share response JWT token to the verifier. The verifier can then login to see if the VP is valid.

Notifications You must be signed in to change notification settings

sndpbjri/affinidi-drivinglicense-verifier

Repository files navigation

Affinidi Use Case Implementation - Driving License - Verifier

Table of contents

Introduction

Welcome to Driving License Use Case - Verifier application. In this application, you will be able to see how does a car rental shop request driving license credentials from an applicant who would like to rent a car and thereafter the car rental shop would be able to view the incoming credentials and checks whether is the credentials verified before proceeding with the transaction.

You can either run this program in your local machine or try it out here: https://usecases.drivinglicense-verifier.vc-generator.com/

Initial Set Up

Generate API Key

Before you could use our API and SDK services, you would have to register to get the API keys.

  1. Go to apikey.affinidi.com
  2. Register for an account
  3. Store the API Key and API Key Hash safely

Configure .env file

  1. Open terminal and navigate to the project folder
  2. Run cp .env.example .env
  3. Fill in the .env file with the details that you have gathered in the previous steps
REACT_APP_API_KEY=<<Afffinidi's API Key>>
REACT_APP_API_KEY_HASH=<<Affinidi's API Key Hash>>
REACT_APP_ENVIRONMENT=prod
REACT_APP_WALLET_URL=http://localhost:3001

How to run

  1. Open terminal and navigate to the project folder
  2. Run npm install
  3. Run cp .env.example .env
  4. Populate the credentials in .env
  5. Run npm start

Sequence

Run Issuer, Holder and Verifier in this sequence in your local machine.

About

A react frontend where a service provider / verifier like a car rental company creates a credential share request JWT token in the form of a URL/QR code. VC Holder uses that URL to create a Verifiable Presentation (VP) and send it via a credential share response JWT token to the verifier. The verifier can then login to see if the VP is valid.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published