description |
---|
Veramo SDK plugin for cheqd identity functionality |
Veramo SDK is a modular and pluggable client app SDK for decentralised identity and SSI applications. Our Veramo plugin - the @cheqd/did-provider-cheqd
NPM package - enables developers to interact with the cheqd ledger using Veramo SDK.
This package includes Veramo SDK Agent methods for use with the Veramo CLI NPM package. It can also be consumed as an NPM package outside Veramo CLI for building your own applications with NPM.
The package's core functionality is borrowed from Veramo Core NPM package and extends this to include cheqd ledger functionality, such as creating and managing DIDs.
Utilise cheqd's identity functionality through the Veramo SDK Plugin by installing the Veramo CLI and getting started below:
Setup Veramo CLI | Set up the Veramo CLI and required packages to use the Veramo SDK Plugin for cheqd. | setup |
Create Decentralised Identifiers (DIDs) | Create fully W3C conformant Decentralised Identifiers (DIDs) on cheqd. | did-operations |
Issue Credentials and Presentations | Issue fully W3C conformant Verifiable Credentials and Presentations | credentials-and-presentations |
Charge for Credentials | Gate encrypted Status Lists with CHEQ using Payment Conditions. | payments |
Create Status Lists | Create Verifiable Credential Status List v2021 on-ledger, using DID-Linked Resources | status-list-v2021 |
Create DID-Linked Resources | Create a variety of DID-Linked Resources, including schemas, status lists and trust registries on cheqd. | did-linked-resources |
We chose to build a cheqd plugin into Veramo SDK for a few key reasons.
- Design Principles — The Veramo SDK was designed to be highly flexible and modular making it highly scalable and fit for a lot of complex workflows. As a result, we felt it offered a route to minimise how much needs to be built from scratch. Through its flexible plug-in system, it’s easy to pick and choose which plug-ins are most beneficial, plus it’s possible to add in our custom packages where required which we knew would be necessary from Cosmos-based transactions.
- Developer Experience — The Veramo SDK has been designed in a way that offers a fast end-to-end process. Ultimately, at cheqd, we want to reduce the amount of time our team spends on SDKs and so we can maintain our focus on building ledger functionality (i.e. building our implementation of the revocation registry and the credentials payment rails).
- Attractive & Simple CLI — The Veramo core API is exposed by its CLI which makes it easy to create DIDs and VCs directly from a terminal or local cloud agent.
- Platform Agnostic — The Veramo packages run on Node, Browsers and React & React Native right out of the box.
Veramo provides an excellent foundation for clients that want to build verifiable data applications. This is because Veramo Core, the Veramo CLI and any specific plugins are available as NPM packages, enabling:
- Identity functionality to be carried out through a native CLI interface; or
- Identity functionality to be integrated directly into client applications through NPM packages.
Using the DID-Provider-cheqd package, we have also been able to reuse identity functionality and abstract the complexity of cheqd/SDK and cheqd Network in less complex packages.
did-provider-cheqd
is the first Veramo SDK plug-in that utilises the DID Manager Update method to offer a full-body DIDDoc update for a DID on cheqd ledger, rather than individual field update transactions used more commonly in other DID methods such as did:ethr
.
New DID creation can also be done by passing a full-body DIDoc payload in JSON, rather than having to assemble the document field-by-field.
Learn how to configure and setup Veramo CLI for working with cheqd network
Our Veramo CLI setup guide provides step-by-step instructions on how to configure your installation for cheqd network
Figure 1: Veramo SDK for cheqd architecture with components (editable Draw.io version)
did-provider-cheqd
consumes functionality that exists within the @cheqd/sdk
NPM package in a way that complies to the Veramo AbstractIdentifierProvider
. (You don't need to call this package separately as it's already included as a dependency in package.json
.)
This package works alongside other base Veramo packages:
The @cheqd/sdk
package adds Cosmos SDK specific functionality such as signing transactions, paying for ledger fees, etc.
For identity-related keys, this plugin uses Veramo's Key Management System (KMS) to manage keys for create and update operations.
Find out about other Veramo plug-ins in their official documentation.
Our Veramo SDK Plugin natively supports the following Credential formats:
JSON (JWT) | JSON Web Token (JWT) Credentials are a simple way to transmit Trusted Data as a JSON object. | https://learn.cheqd.io/overview/introduction-to-decentralised-identity/what-is-a-verifiable-credential-vc/what-are-the-different-types-of-verifiable-credentials/json-jwt |
JSON-LD | JSON-LD (Linked Data) Credentials are a richer data format, allowing applications to follow embedded links to other pieces of Linked Data across the web. | https://learn.cheqd.io/overview/introduction-to-decentralised-identity/what-is-a-verifiable-credential-vc/what-are-the-different-types-of-verifiable-credentials/json-ld |
We provide a quick-start setup guide for working with cheqd network using Veramo CLI.
You can use our Veramo plugin in non-CLI contexts as well, for example, for integrating into custom applications
Depending on the type of application you are looking to develop, you will need to install a different set of packages.
For other applications, see: