🍈Veramo

Veramo SDK plugin for cheqd identity functionality

Overview

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.

Get started

Utilise cheqd's identity functionality through the Veramo SDK Plugin by installing the Veramo CLI and getting started below:

Why did we choose Veramo?

We chose to build a cheqd plugin into Veramo SDK for a few key reasons.

  1. 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.

  2. 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).

  3. 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.

  4. 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:

  1. Identity functionality to be carried out through a native CLI interface; or

  2. 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:cheqd-specific functionality

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

Architecture

Veramo SDK for cheqd architecture

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.

Supported Credential types

Our Veramo SDK Plugin natively supports the following Credential formats:

Working with Veramo SDK for cheqd outside of Veramo CLI

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:

Last updated