Managing Identity Keys
Manage your identity keys for creating cheqd Decentralized Identifiers (DIDs) using Veramo.
Last updated
Was this helpful?
Manage your identity keys for creating cheqd Decentralized Identifiers (DIDs) using Veramo.
Last updated
Was this helpful?
Follow these instructions to:
Generate identity keys on-the-fly WITH a draft DIDDoc
Generate standalone identity public/private keypairs
Convert identity key pairs generated using Veramo agent to other key encoding formats
â ī¸ Before you begin...
Make sure you've correctly for Veramo CLI
Instead of creating identity keys standalone, you can generate them along with a DIDDoc template. This makes it far easier to handle different inputs and arguments, such as generating DID Docs with different key types.
You can use the following command in your CLI to create your DIDDoc and associated identity keys:
You can pass the payload of the inputs and arguments as a file rather than inline using:
You can reuse this example file:
Within this command, you are able to choose from the following inputs below to produce different types of DIDDocs:
Once you have submitted the command above, you should receive a DID Document draft template, including a set of identity keys, including your chosen inputs and arguments. You can find an example of this output below:
If you want to use identity keys outside of Veramo CLI, you can convert keys from one format to another.
For example, if you would like to convert from hex
to base64
, you can use the following generic approach:
This works with other encoding conversion libraries (i.e. multiformats
).
After running the above command, if you see an unexpected error, follow our to fix it. A common error is:
You can generate identity keys standalone in a plug-and-play format for future use in or transactions.