A wrapper library built for TrustVC to work with W3C Verifiable Credentials (VCs) Data Model v1.1 and v2.0. Provides packages to facilitate the creation of Decentralized Identifiers (DIDs) v1, supporting both did:web (host a DID document) and did:key (self-certifying, no hosting required), and Verifiable Credentials Status — both Status List 2021 and the latest Bitstring Status List.
For more details on each packages, refer to the individual README doc.
| Packages | npm |
|---|---|
| @trustvc/w3c | npm |
| @trustvc/w3c-context | npm |
| @trustvc/w3c-credential-status | npm |
| @trustvc/w3c-issuer | npm |
| @trustvc/w3c-vc | npm |
-
Pre Requisite
- Generate a signature specific key pair. link
- Choose a DID method:
did:web— generate a DID document and host it on a domain you control. did:web setup guidedid:key— generate a self-certifying DID key pair (no hosting required). did:key setup guide
-
Sign and Verify VC
-
Sign and Verify VC with Credential Status
npm install
npm run build
npm run test