description |
---|
Create a DID using the did:cheqd method from ACA-Py Agent |
Follow these instructions to create a new DID from ACA-Py Agent and publish the associated DID Document on cheqd ledger.
⚠️ Before you begin...Make sure you've correctly configured the cheqd plugin's agent settings for ACA-Py.
For wallet storage, utilise a Postgres database to ensure key persistence, enabling future updates to the DID.
Populate the various options
and features
in the JSON request body and call the API to create the DID.
{% swagger src="../../../.gitbook/assets/swagger.json" path="/did/cheqd/create" method="post" %} swagger.json {% endswagger %}
These are the variables that can be passed in the Body:
features (optional)
Optional Object with Key-Value format for additional features of the new DID. This is for future use.
options (optional)
Optional Object with Key-Value format for additional configuration options, recommendations below:
"network": testnet or mainnet
"key_type": "ed25519" or "bls12381g2"
After creating a DID or multiple DIDs, users can list all the created DIDs associated with their wallet. Using the /wallet/did
API.
{% swagger src="../../../.gitbook/assets/swagger.json" path="/wallet/did" method="get" %} swagger.json {% endswagger %}