arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Create an off-ledger holder DID

Create an off-ledger Decentralized Identifier for holders and credentials subjects, of method did:key.

This tutorial offers step-by-step guidance on how to create a subject DID to be used for a holder that will receive a Verifiable Credentials.

⚠️ Before you begin...

Make sure you've correctly configured the cheqd plugin's agent settings for Veramo CLI

hashtag
Background

We chose to use for the holder because the specification has a lot synergy with cheqd did method, .

Using also keeps holder DIDs off-ledger. This is very important for the privacy and data protection of the holder. If holder DIDs and DIDDocs were stored on-ledger, this could constitute a risk where data written within the DIDDoc could not be removed in line with a holder's right to be forgotten.

It is also easily managable by a client agent as a full ledger backup for the writing of a DID / DID Doc is not required, thereby making it easily reproducable in a client environment.

Creating a subject DID can be achieved through both the Veramo CLI, or directly through an application that has been setup to read and write to the cheqd ledger, using the Veramo SDK for cheqd.

hashtag
Instructions

hashtag
1. Invoke Veramo CLI DID create function

This off-ledger DID, of type did:key, is used for the recipient of the Verifiable Credential and Verifiable Presentation using:

hashtag
2. Select the did:key provider and KMS

Select did:key as the provider when prompted as well as a key management system (KMS) to use (default is local).

The file used for the Veramo SDK for cheqd has a preloaded local key management system which is bootstrapped along with the CLI.

The KMS is stored in a local SQLite database.

hashtag
3. Enter an alias for the DID

This is the nickname for your DID, which will be managed by Veramo KMS. Providing a memorable alias will help reference this for future uses, e.g., Alice off ledger DID.

Once you have entered this, you will receive a response in a table, e.g:

provider
alias
did

hashtag
Next steps

If you got the table above, your off-ledger did:key has been created

did:key

Alice off ledger DID

did:key:z6MkjxdqDUWoudesywsGYbzGozUeVYiYVArdoqPcMV6m6MG4

did:keyarrow-up-right
did:keyarrow-up-right
did:cheqd
did:keyarrow-up-right
did:keyarrow-up-right
agent.ymlarrow-up-right
veramo did create