Skip to content

shiva-beehyv/verification-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verification SDK for Sunbird-RC generated credentials

Install

This can be used to verify JSON-LD based W3C compliant Verifiable Credentials as described in the Spec. It uses tooling from Digital Bazaar to enable verification of credentials. This supports the following Key Types:

  • RSA Verification Key 2018
  • Ed25519 Verification Key 2018
  • Ed25519 Verification Key 2020
npm install @sunbird-rc/verification-sdk

Usage

As part of this SDK, two main functionalities exist.

  • Download Revocation List from API
  • Verify the JSON-LD credential with the signature suite
import {downloadRevocationList, verifyCredential} from "@sunbird-rc/verification-sdk";

const revocationList = await downloadRevocationList(issuerId, revocation_url);

const verificationStatus = await verifyCredential(issuerDid, credential, revocationList);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%