Create Issuer DID
Create a DID using the did:cheqd method
To create a cheqd DID (did:cheqd
) and associated DID Document there are two ways of building the payload for the request:
Step 1: Set up your account
Make sure you have set up your account with cheqd Studio and are logged in, using our guide below:
Step 2: Create a DID and associated DID Document
Using the /did/create
API, users have two options for creating a did:cheqd
DID and associated DID Document on-ledger:
Filling out a simple form using the
application/x-www-url-form-encoded
option within an API client of your choice.Compiling a DID Document body yourself using the
application/json
option within an API client of your choice.
Option 1. Choose from a few variables and we will compile the DID for you
This is the easiest way to create DIDs on cheqd and is recommended for users who are not overly familiar with compiling DID Documents.
Using the application/x-www-url-form-encoded
option, users are able to choose between the following variables to compile your DID:
From this request, the Credential Service will automatically create and publish a DID and associated DID Document to the ledger and return it as a response.
Option 2. Publish a DID Document body yourself
Instead of generating a DID Document using simple parameters, you can create a fully formatted DID Document yourself. Before, submitting a manually created DID, you will need to have created a set of identity keys to input the key material into the DID document.
Step 1: Create a new keypair
Use the /key/create
API to generate a new keypair within the Credential Service key management store. Copy the "publicKeyHex".
Step 2: Utilise the DID Document template helper
To simplify this process of formatting a DID Document using your own keys, we've created a Helper Tool in our DID Registrar here. Simply paste in your publicKeyHex and choose the variables to compile your DID Document template.
Step 3: Paste the response
Within the /did/create
JSON payload, paste the response of your DID Document template, with your own signing keys.
Request format:
Step 3: Hit execute on the API
Hit execute on the API below to create your did:cheqd
DID and associated DID Document.
List DIDs associated with your account
After creating a DID or multiple DIDs, users can list all the created DIDs associated with their account. Using the /did/list
API.
Alternatives
Below are a list of alternatives for creating cheqd DIDs.
Credo
Credo is an SDK which supports the European Architecture and Reference Framework (ARF) standards as well as AnonCreds with full cheqd support for DIDs.
Veramo
The Veramo SDK Plugin supports JSON, JSON-LD credentials as well as cheqd Credential Payments in an SDK.
Walt.id Community Stack
Walt.id Community Stack is an SDK that supports the European Architecture and Reference Framework (ARF) standards for identity, with full cheqd support.
DID Registrar
cheqd Cosmos CLI
Cosmos CLI which directly communicates with the cheqd network. This should only be used for testing environments.
Last updated