Skip to content

h9kwon/sd-jwt-js-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sd-jwt-js-qrcode

A toolkit for simulating Selective Disclosure JSON Web Tokens (SD-JWT) workflows using QR codes. This repository demonstrates the interactions between issuer, holder, and verifier roles in a decentralized identifier (DID) ecosystem. The toolkit enables encoding, selective disclosure, issuance and verification of verifiable credentials (VC) and presentations (VP) through QR code interactions.

Features

  • SD-JWT Workflow Simulation: Issue, hold, and verify credentials using SD-JWT.
  • QR Code Integration: Encode and decode credential data for offline and secure interactions.
  • Custom Claims Support: Specify claims and selective disclosure preferences.
  • Express Backend: Simulates issuer, holder, and verifier endpoints.
  • React Frontend: Interactive UI for holder functionalities and QR code handling.

Basic Workflow

  1. Issuer: Issues an SD-JWT containing claims, disclosures, and selective disclosure settings.
  2. Holder: Receives and manages the SD-JWT. Selects claims for selective disclosure and generates a verifiable presentation (VP).
  3. Verifier: Decodes and verifies the VP to validate the disclosed claims.

Etc.

  • Scanning the QR code can be simulated by clicking on it.

Development

Build

cd frontend
npm install
cd ../backend
npm install

Run simulation

In backend directory,

tsc
npm start

In frontend directory,

tsc
npm run build
npm start

Further Plan

Connection to Wallet

  • receiving VC using Wallet by scanning QR code.
  • generating the QR code of VP in the Wallet and show it to verifier offline.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors