Skip to content

TrustVC/w3c

Repository files navigation

TrustVC W3C

About

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.

Packages

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

Getting Started

  1. Pre Requisite

    1. Generate a signature specific key pair. link
    2. Choose a DID method:
  2. Sign and Verify VC

    1. Sign
      1. Prepare and Sign the VC payload. link
    2. Verify
      1. Verify the signed VC. link
  3. Sign and Verify VC with Credential Status

    1. Generate Credential Status
      1. Prepare and Sign the payload for Credential Status. link
    2. Sign
      1. Prepare and Sign the VC payload. link
    3. Verify
      1. Verify the signed VC. link
      2. Verify the credentialStatus link

Running the code

npm install
npm run build
npm run test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors