Create a DID
Create a did:cheqd DID using the Credo Agent.
Last updated
Was this helpful?
Create a did:cheqd DID using the Credo Agent.
Last updated
Was this helpful?
This tutorial shows you how to create a cheqd DID using your configured Credo Agent, and how to publish the associated DID Document to the cheqd ledger.
Before you begin:
β
Ensure your Credo agent is correctly configured with the @credo-ts/cheqd
module
β
Youβve set up a cosmosPayerSeed
for publishing to the cheqd network
β
You're connected to the correct network (mainnet
or testnet
)
Credo supports two approaches to creating a DID:
Use when you want full control over the DID structure and already have key(s) in your wallet.
Use when you want Credo to create the DID Document from a key you specify in secret
.
method
*: cheqd
secret
options
*
didDocument
First, generate a key pair:
Use that key to construct and register the DID Document:
π Make sure the
publicKeyBase58
matches the key in your wallet. The DID will be written to thetestnet
unless you specify"mainnet"
inoptions.network
.
If you donβt want to manually build a DID Document, you can let Credo handle it based on your input key type and ID.
π Credo will generate the DID Document using the key referenced in
secret
and publish it to the network.
Now that your DID is live on the cheqd network, try:
Create DID-Linked Resource
Associate DID-Linked Resources to your DID.
Issue Verifiable Credentials
Issue Credentials using your cheqd DID.