Skip to content

A react frontend web wallet where holders claim and store Verifiable Credentials (VC) issued to them. The VC serves as a proof that the driver's license was issued by a trusted issuer. Uses Affinidi's cloud wallet as a custodial wallet (storage in encrypted data vault)

Notifications You must be signed in to change notification settings

affinidi/affinidi-drivinglicense-holder

Repository files navigation

Affinidi Use Case Implementation - Driving License - Holder

Generic badge

Table of contents

Introduction

Welcome to Driving License Use Case - Holder application. In this application, you will be able to see how does a user access his/her Affinidi Wallet which will stores all of their verifiable credentials. Holder application is important as other than viewing the credentials, it can used to accept or to approve sharing of credentials.

You can either run this program in your local machine or try it out here: https://usecases.drivinglicense-holder.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

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 web wallet where holders claim and store Verifiable Credentials (VC) issued to them. The VC serves as a proof that the driver's license was issued by a trusted issuer. Uses Affinidi's cloud wallet as a custodial wallet (storage in encrypted data vault)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •