4.1.1 â€ĸ Published 16 days ago

@cheqd/did-provider-cheqd v4.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
16 days ago

Veramo SDK plugin for cheqd DID method

GitHub release (latest by date) GitHub Release Date GitHub license

GitHub release (latest by date including pre-releases) GitHub commits since latest release (by date) GitHub contributors

GitHub Workflow Status GitHub Workflow Status GitHub repo size

ℹī¸ Overview

The purpose of this @cheqd/did-provider-cheqd NPM package is to enable developers to interact with the cheqd ledger using Veramo SDK, a modular and pluggable client app SDK for decentralised identity and SSI applications.

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.

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

🧑‍đŸ’ģ🛠 Quick Start

These quick start steps provide the minimal configuration that you need to set Veramo CLI for use with cheqd.

Check out our advanced CLI setup guide for further customisations and troubleshooting Veramo CLI setup in case you run into any issues.

1. Install Veramo CLI and clone this repo

This step is exactly as described in Veramo CLI docs:

npm install -g @veramo/cli@latest
git clone https://github.com/cheqd/did-provider-cheqd.git
npm install

2. Generate a new local database encryption key

By default, the did-provider-cheqd package has a default SQLite database password, but it's a good idea to modify and change this to a new key unique to your install.

$ veramo config gen-key

X25519 raw private key (hex encoded):

4a5aeb56c7956dd6f3312e7094130a03afc060b95621fa3a86577aaf2b67cc1d

You can use this key with @veramo/kms-local#SecretBox
or replace the default agent.yml 'dbEncryptionKey' constant

Take the key generated and replace the value under dbEncryptionKey in the agent.yml file.

3. Configure your cheqd/Cosmos account keys and RPC endpoints

Configure the following properties under the didManager section:

  1. cosmosPayerMnemonic: Mnemonic associated with your cheqd/Comsos SDK account. This is only stored locally, and the mnemonic is used to reconstitute the account address and keys used to pay for the transaction.
  2. rpcUrl: For both did:cheqd:mainnet: as well as did:cheqd:testnet: sections, you can specify a Cosmos SDK RPC endpoint. This endpoint is where transactions are sent to. By default, this is populated with rpc.cheqd.net (for mainnet) and rpc.cheqd.network (for testnet), but you can can modify this to a different hosted RPC endpoint for cheqd or even your own local/private RPC endpoint.
  3. defaultProvider (optional): The default cheqd network is set to did:cheqd:testnet to allow developers to test out network functionality. However, if you prefer, you can switch this out to did:cheqd:mainnet instead.

4. Verify your configuration file is correct

Once you've completed the steps above, verify that your Veramo configuration is accurate using the following command. If your configuration is correct, you should get a success message like the one below.

$ veramo config check -f <path/to/>agent.yml

Your Veramo configuration seems fine. An agent can be created and the 'agent.execute()' method can be called on it.

5. Environment setup

  1. LIT_PROTOCOL_DEBUG - Set this to true to enable debug logging for the LIT protocol. By default it is set to false.

📖 Documentation

Tutorials, advanced configuration, and architecture for cheqd's Veramo plugin can be found on our Identity Docs site.

đŸ’Ŧ Community

Our Discord server is the primary chat channel for our open-source community, software developers, and node operators.

Please reach out to us there for discussions, help, and feedback on the project.

🙋 Find us elsewhere

Telegram Discord Twitter LinkedIn Medium YouTube

4.1.1-develop.2

16 days ago

4.1.1

16 days ago

4.1.1-develop.1

1 month ago

4.1.0-develop.3

1 month ago

4.1.0

1 month ago

4.1.0-develop.2

1 month ago

4.1.0-develop.1

1 month ago

4.0.0

3 months ago

4.0.0-develop.1

3 months ago

3.7.0-develop.1

3 months ago

3.7.0

3 months ago

3.6.16-develop.1

4 months ago

3.6.16

4 months ago

3.6.15

4 months ago

3.6.15-develop.1

4 months ago

3.6.15-develop.2

4 months ago

3.6.14-develop.2

4 months ago

3.6.14

4 months ago

3.6.11-develop.2

7 months ago

3.6.11-develop.1

7 months ago

3.6.1-develop.1

9 months ago

3.6.2

9 months ago

3.6.1

9 months ago

3.6.0

10 months ago

3.6.14-develop.1

6 months ago

3.6.7-develop.1

8 months ago

3.6.13-develop.1

6 months ago

3.6.6

9 months ago

3.6.5

9 months ago

3.6.4

9 months ago

3.6.3

9 months ago

3.6.9

8 months ago

3.6.8

8 months ago

3.6.7

8 months ago

3.6.6-develop.1

9 months ago

3.6.12-develop.2

6 months ago

3.5.0

10 months ago

3.6.12-develop.1

7 months ago

3.6.5-develop.1

9 months ago

3.6.5-develop.2

9 months ago

3.6.3-develop.5

9 months ago

3.6.3-develop.4

9 months ago

3.6.3-develop.3

9 months ago

3.6.3-develop.2

9 months ago

3.6.3-develop.1

9 months ago

3.5.0-develop.1

10 months ago

3.6.3-develop.6

9 months ago

3.6.10-develop.1

8 months ago

3.6.10-develop.2

8 months ago

3.6.0-develop.1

10 months ago

3.5.0-develop.2

10 months ago

3.5.0-develop.3

10 months ago

3.5.0-develop.4

10 months ago

3.6.9-develop.2

8 months ago

3.6.9-develop.3

8 months ago

3.6.9-develop.1

8 months ago

3.6.2-develop.2

9 months ago

3.6.2-develop.1

9 months ago

3.6.13

6 months ago

3.6.12

6 months ago

3.6.11

7 months ago

3.6.10

8 months ago

3.6.8-develop.2

8 months ago

3.6.8-develop.1

8 months ago

3.4.2-develop.1

10 months ago

3.4.1-develop.2

11 months ago

3.4.1-develop.3

11 months ago

3.4.1

11 months ago

3.3.1-develop.2

11 months ago

3.3.1-develop.1

11 months ago

3.4.1-develop.1

11 months ago

3.4.0

11 months ago

3.3.0-develop.3

11 months ago

3.4.0-develop.2

11 months ago

3.4.0-develop.1

11 months ago

3.4.0-develop.3

11 months ago

3.3.1

11 months ago

3.3.2

11 months ago

3.3.2-develop.1

11 months ago

3.1.1-develop.2

1 year ago

3.1.1-develop.1

1 year ago

3.3.0-develop.2

11 months ago

3.2.1

12 months ago

3.2.0

12 months ago

3.3.0-develop.1

12 months ago

3.1.0-develop.2

1 year ago

3.2.0-develop.2

12 months ago

3.2.0-develop.1

12 months ago

3.3.0

11 months ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.2-develop.2

12 months ago

3.1.2-develop.1

1 year ago

3.0.4

1 year ago

3.0.5

1 year ago

3.0.4-develop.1

1 year ago

3.1.0-develop.1

1 year ago

3.1.0

1 year ago

3.0.5-develop.1

1 year ago

3.0.3

1 year ago

3.0.3-develop.1

1 year ago

3.0.2

1 year ago

3.0.2-develop.1

1 year ago

3.0.1-develop.1

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

3.0.0-develop.5

1 year ago

3.0.0-develop.4

1 year ago

3.0.0-develop.3

1 year ago

3.0.0-develop.2

1 year ago

3.0.0-develop.1

1 year ago

2.1.0-develop.2

1 year ago

2.1.0-develop.1

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

2.0.1-develop.1

1 year ago

2.0.1-develop.2

1 year ago

1.8.0-develop.1

1 year ago

2.0.0-develop.2

1 year ago

2.0.0-develop.3

1 year ago

2.0.0-develop.1

1 year ago

2.0.0-develop.6

1 year ago

2.0.0-develop.7

1 year ago

2.0.0-develop.4

1 year ago

2.0.0-develop.5

1 year ago

1.7.10

2 years ago

1.7.11

2 years ago

1.7.12

2 years ago

1.7.13

2 years ago

1.7.14

2 years ago

1.7.15

2 years ago

1.7.16

2 years ago

1.7.17

2 years ago

1.7.18

2 years ago

1.7.19

2 years ago

1.7.20

1 year ago

1.7.9

2 years ago

1.7.8

2 years ago

1.7.7

2 years ago

1.7.3

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.7.6

2 years ago

1.7.5

2 years ago

1.7.4

2 years ago

1.7.0

2 years ago

1.6.5

2 years ago

1.6.4

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago