This command used for recovering DID.
recover-did [flags]
domain
[string] - URL to the TrustBloc consortium's domain.sidetree-url
[array|string] - Array of one or more Sidetree URLs.sidetree-write-token
[string] - The Sidetree write token.tls-cacerts
[array|string] - Array of one or more CA cert paths.tls-systemcertpool
[boolean] - Flag whether to use system certificate pool.did-uri
[string] - DID URI.publickey-file
[string] - The file contains the DID public keys to be recovered.service-file
[string] - The file contains the DID services to be recovered.nextupdatekey
[string] - The public key PEM used for validating the signature of the next update of the document.nextupdatekey-file
[string] - The file that contains the public key PEM used for validating the signature of the next update of the document.nextrecoverkey
[string] - The public key PEM used for validating the signature of the next recovery of the document.nextrecoverkey-file
[string] - The file that contains the public key PEM used for validating the signature of the next recovery of the document.signingkey
[string] - The private key PEM used for signing the recovery of the document.signingkey-file
[string] - The file that contains the private key PEM used for signing the recovery of the document.signingkey-password
[string] - The Signing key PEM password.
recover-did --domain testnet.trustbloc.local --did-uri did:trustbloc:3XvwJ:EiDZTmh3BNBzhwSlOdh3FwAdjzu4BkWly2MoTVNHoNdJpw
--publickey-file ./publickeys.json --service-file ./services.json
--nextrecoverkey-file ./keys/recover2/public.pem --nextupdatekey-file ./keys/update3/public.pem
--signingkey-file ./keys/recover/key_encrypted.pem --signingkey-password 123
[
{
"id": "key-recover-id",
"type": "Ed25519VerificationKey2018",
"purposes": ["authentication"],
"jwkPath": "./fixtures/did-keys/recover/key1_jwk.json"
}
]
{
"kty":"OKP",
"crv":"Ed25519",
"x":"o1bG1U7G3CNbtALMafUiFOq8ODraTyVTmPtRDO1QUWg",
"y":""
}
[
{
"id": "svc-recover-id",
"type": "type1",
"priority": 1,
"routingKeys": ["key1"],
"recipientKeys": ["key1"],
"serviceEndpoint": "http://www.example.com"
}
]