The PR aims to introduce CLI commands to generate a minimal DID document, and extend the current create-did capability to refer to the generated DID Document, without the need of explicitly specifying the DID Document JSON.
Generation of a DID Document using an alias:
hid-noded ssi-tools generate-did --from <name or address of account> --keyring-backend <test is the only supported keyring backend> --did-alias <name of the DID Document alias> --did-namespace <Optional Flag to specify the DID Namespace>
Example:
hid-noded ssi-tools generate-did --from node1 --keyring-backend test --did-alias production1
hid-noded ssi-tools generate-did --from node1 --keyring-backend test --did-alias production1 --did-namespace devnet
The PR aims to introduce CLI commands to generate a minimal DID document, and extend the current
create-did
capability to refer to the generated DID Document, without the need of explicitly specifying the DID Document JSON.Note: If the author of the
CreateDID
Transaction is not the author of the referred DID Alias, the transaction will fail.