This command used for updating DID.
update-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.add-publickey-file
[string] - The file contains the DID public keys to be added or updated.add-service-file
[string] - The file contains the DID services to be added or updated.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.signingkey
[string] - The private key PEM used for signing the update of the document.signingkey-file
[string] - The file that contains the private key PEM used for signing the update of the document.signingkey-password
[string] - The Signing key PEM password.
update-did --domain testnet.trustbloc.local --did-uri did:trustbloc:3XvwJ:EiDnJwbKHkHdaco4khFeBzvSL1hZ4eBGQq3q1Yjrpi5d4g
--add-publickey-file ./publickeys.json --add-service-file ./services.json --signingkey-file ./keys/update/key_encrypted.pem --signingkey-password 123
--nextupdatekey-file ./keys/update2/public.pem
[
{
"id": "key2",
"type": "JwsVerificationKey2020",
"purposes": ["capabilityInvocation"],
"jwkPath": "./key2_jwk.json"
},
{
"id": "key3",
"type": "Ed25519VerificationKey2018",
"purposes": ["authentication"],
"jwkPath": "./key3_jwk.json"
}
]
{
"kty":"EC",
"crv":"P-256",
"x":"bGM9aNufpKNPxlkyacU1hGhQXm_aC8hIzSVeKDpwjBw",
"y":"PfdmCOtIdVY2B6ucR4oQkt6evQddYhOyHoDYCaI2BJA"
}
{
"kty":"OKP",
"crv":"Ed25519",
"x":"o1bG1U7G3CNbtALMafUiFOq8ODraTyVTmPtRDO1QUWg",
"y":""
}
[
{
"id": "svc3",
"type": "type3",
"priority": 3,
"routingKeys": ["key3"],
"recipientKeys": ["key3"],
"serviceEndpoint": "http://www.example.com"
}
]