Skip to content

Latest commit

 

History

History
129 lines (80 loc) · 5.86 KB

04_messages.md

File metadata and controls

129 lines (80 loc) · 5.86 KB

Messages

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.

Verification

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 method
  • method - a verification method object
  • context - a list of strings identifying additional json ld contexts

Source

https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L32

MsgCreateDidDocument

A MsgCreateDidDocument is used to create a new DID document, it has the following fields

  • id - the did string identifying the DID document
  • controller - a list of did that are controllers of the DID document
  • verifications - a list of verification for the DID document
  • services - a list of services for the DID document
  • signer - a string containing the cosmos address of the private key signing the transaction

Source

https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L45

MsgUpdateDidDocument

The MsgUpdateDidDocument is used to update a DID document. It has the following fields:

  • id - the did string identifying the DID document
  • controller - a list of did that are controllers of the DID document
  • signer - a string containing the cosmos address of the private key signing the transaction

Source

https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L58

MsgAddVerification

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 document
  • verification - the verification to add to the DID document
  • signer - a string containing the cosmos address of the private key signing the transaction

Source:

https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L73

MsgSetVerificationRelationships

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 document
  • method_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 method
  • signer - a string containing the cosmos address of the private key signing the transaction

Source:

https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L84

MsgRevokeVerification

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 document
  • method_id - a string containing the unique identifier of the verification method within the DID document
  • signer - a string containing the cosmos address of the private key signing the transaction

Source:

https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L96

MsgAddService

The MsgAddService is used to add a service to a DID document. It has the following fields:

  • id - the did string identifying the DID document
  • service_data - the service object to add to the DID document
  • signer - a string containing the cosmos address of the private key signing the transaction

Source:

https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L111

MsgDeleteService

The MsgDeleteService is used to remove a service from a DID document. It has the following fields:

  • id - the did string identifying the DID document
  • service_id - the unique id of the service in the DID document
  • signer - a string containing the cosmos address of the private key signing the transaction

Source:

https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/tx.proto#L122

MsgAddController

The MsgAddController is used to add a controller to a DID document. It has the following fields:

  • id - the did string identifying the DID document
  • controllerDid - the controller DID to add to the DID document
  • signer - a string containing the cosmos address of the private key signing the transaction

Source:

--

MsgDeleteController

The MsgDeleteController is used to remove a controller from a DID document. It has the following fields:

  • id - the did string identifying the DID document
  • controllerDid - the controller DID to add to the DID document
  • signer - a string containing the cosmos address of the private key signing the transaction

Source:

--

QueryDidDocumentRequest

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

Source:

https://github.com/elesto-dao/elesto/blob/v1.0.0/proto/did/query.proto#L45