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:
- DID concepts and the corresponding SDK API.
- DID resolver
- Verifiable credentials and its API
- Schema and its API
- Credential revocation
- Claim Deduction and its API
- PoE anchoring and its API
- Complete examples in SDK for various features
- Another useful place is the SDK tests
- API reference
- 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.