Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
srprasanna committed Feb 15, 2024
1 parent 87245f0 commit de6b745
Show file tree
Hide file tree
Showing 11 changed files with 2,541 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*


.idea
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# verification-sdk
# 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](https://www.w3.org/TR/vc-data-model/).
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


```bash
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

```javascript
import {downloadRevocationList, verifyCredential} from "@sunbird-rc/verification-sdk";

revocationList = await downloadRevocationList(issuerId, revocation_url);

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

```
Loading

0 comments on commit de6b745

Please sign in to comment.