Convert identity key pairs generated using Veramo agent to other key encoding formats
â ī¸ Before you begin...
Make sure you've correctly for Veramo CLI
Method 1: Generating identity keys on-the-fly with DIDDocs
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.
Command (inline)
You can use the following command in your CLI to create your DIDDoc and associated identity keys:
Within this command, you are able to choose from the following inputs below to produce different types of DIDDocs:
verificationMethod
Ed25519VerificationKey2020
JsonWebKey2020
Ed25519VerificationKey2018
methodSpecificIdAlgo
base58btc
uuid
network
mainnet
testnet
Expected output
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: