In this section we describe the processing of the staking messages and the corresponding updates to the state. All created/modified state objects specified by each message are defined within the state section.
A verification message represent a combination of a verification method and a set of verification relationships. It has the following fields:
relationships
- a list of strings identifying the verification relationship for the verification methodmethod
- a verification method objectcontext
- a list of strings identifying additional json ld contexts
https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L32
A MsgCreateDidDocument
is used to create a new DID document, it has the following fields
id
- the did string identifying the DID documentcontroller
- a list of did that are controllers of the DID documentverifications
- a list of verification for the DID documentservices
- a list of services for the DID documentsigner
- a string containing the cosmos address of the private key signing the transaction
https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L45
The MsgUpdateDidDocument
is used to update a DID document. It has the following fields:
id
- the did string identifying the DID documentcontroller
- a list of did that are controllers of the DID documentsigner
- a string containing the cosmos address of the private key signing the transaction
https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L58
The MsgAddVerification
is used to add new verification methods and verification relationships to a DID document. It has the following fields:
id
- the did string identifying the DID documentverification
- the verification to add to the DID documentsigner
- a string containing the cosmos address of the private key signing the transaction
https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L73
The MsgSetVerificationRelationships
is used to overwrite the verification relationships for a verification methods of a DID document. It has the following fields:
id
- the did string identifying the DID documentmethod_id
- a string containing the unique identifier of the verification method within the DID document.relationships
- a list of strings identifying the verification relationship for the verification methodsigner
- a string containing the cosmos address of the private key signing the transaction
https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L84
The MsgRevokeVerification
is used to remove a verification method and related verification relationships from a DID document. It has the following fields:
id
- the did string identifying the DID documentmethod_id
- a string containing the unique identifier of the verification method within the DID documentsigner
- a string containing the cosmos address of the private key signing the transaction
https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L96
The MsgAddService
is used to add a service to a DID document. It has the following fields:
id
- the did string identifying the DID documentservice_data
- the service object to add to the DID documentsigner
- a string containing the cosmos address of the private key signing the transaction
https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L111
The MsgDeleteService
is used to remove a service from a DID document. It has the following fields:
id
- the did string identifying the DID documentservice_id
- the unique id of the service in the DID documentsigner
- a string containing the cosmos address of the private key signing the transaction
https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L122
The MsgAddController
is used to add a controller to a DID document. It has the following fields:
id
- the did string identifying the DID documentcontrollerDid
- the controller DID to add to the DID documentsigner
- a string containing the cosmos address of the private key signing the transaction
--
The MsgDeleteController
is used to remove a controller from a DID document. It has the following fields:
id
- the did string identifying the DID documentcontrollerDid
- the controller DID to add to the DID documentsigner
- a string containing the cosmos address of the private key signing the transaction
--
The QueryDidDocumentRequest
is used to resolve a DID document. That is, to retrieve a DID document from its id. It has the following fields:
id
- the did string identifying the DID document
https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/query.proto#L45