-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87245f0
commit de6b745
Showing
11 changed files
with
2,541 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,3 +128,6 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
|
||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
``` |
Oops, something went wrong.