> For the complete documentation index, see [llms.txt](https://docs.truvera.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.truvera.io/open-source-community/blockchain-sdk.md). Agents can also search and read this documentation through its [MCP server](https://docs.truvera.io/~gitbook/mcp).

# 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](https://github.com/arkworks-rs/algebra).

Some useful references:

1. DID [concepts](https://docknetwork.github.io/sdk/tutorials/concepts_did.html) and the corresponding [SDK API](https://docknetwork.github.io/sdk/tutorials/tutorial_did.html).
2. [DID resolver](https://docknetwork.github.io/sdk/tutorials/tutorial_resolver.html)
3. [Verifiable credentials](https://docknetwork.github.io/sdk/tutorials/concepts_vcdm.html) and its [API](https://docknetwork.github.io/sdk/tutorials/tutorial_ipv.html)
4. [Schema](https://docknetwork.github.io/sdk/tutorials/concepts_blobs_schemas.html) and its [API](https://docknetwork.github.io/sdk/tutorials/tutorial_blobs_schemas.html)
5. [Credential revocation](https://docknetwork.github.io/sdk/tutorials/tutorial_revocation.html)
6. [Claim Deduction](https://docknetwork.github.io/sdk/tutorials/concepts_claim_deduction.html) and its [API](https://docknetwork.github.io/sdk/tutorials/tutorial_claim_deduction.html)
7. [PoE anchoring](https://docknetwork.github.io/sdk/tutorials/concepts_poe_anchors.html) and its [API](https://docknetwork.github.io/sdk/tutorials/tutorial_poe_anchors.html)
8. [Complete examples](https://github.com/docknetwork/sdk/tree/master/example) in SDK for various features
9. Another useful place is the [SDK tests](https://github.com/docknetwork/sdk/tree/master/tests)
10. [API reference](https://docknetwork.github.io/sdk/reference/)
11. 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](https://github.com/docknetwork/sdk/blob/master/example/chain-ops.js). The script uses functions defined [here](https://github.com/docknetwork/sdk/blob/master/src/utils/chain-ops.js).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.truvera.io/open-source-community/blockchain-sdk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
