Truvera Credential SDK

The Truvera Credential SDK is an opensource library that powers Truvera SaaS API. It provides the credential management, cryptography, and blockchain storage features for Truvera's supported credential variants:

  • W3C VC JSON-LD ed25519 credential using StatusList 2021 for revocation targetted at interoperability

  • W3C VC JSON-LD BBS credential using accumulators for revocation targetted at privacy

  • W3C VC JSON-LD KVAC credential using accumulators for revocation allowing monetization of credentials

Most of the SDK is written in JavaScript / TypeScript with safety-critical code written in Rust. The SDK depends on the Arkworks math library.

Some useful references:

  1. DID concepts and the corresponding SDK API.

  2. Schema and its API

  3. Complete examples in SDK for various features

  4. Another useful place is the SDK tests

  5. To see how to do basic operations like generate addresses, validate addresses, check balance, do token transfer, get block by hash or number, etc, see this example script. The script uses functions defined here.

Last updated