Module messaging

Module messaging 

Source
Expand description

ISMP message types

Structs§

ConsensusMessage
A consensus message is used to update the state of a consensus client and its children state machines.
CreateConsensusState
Used for creating the initial consensus state for a given consensus client.
FraudProofMessage
A fraud proof message is used to report byzantine misbehaviour in a consensus system.
MessageWithWeight
The ISMP Message with Weight consumed by the message
Proof
Proof holds the relevant proof data for the context in which it’s used.
RequestMessage
A request message holds a batch of requests to be dispatched from a source state machine
ResponseMessage
A request message holds a batch of responses to be dispatched from a source state machine
StateCommitmentHeight
Identifies a state commitment at a given height

Enums§

Message
The Overaching ISMP message type.
TimeoutMessage
A timeout message holds a batch of messages to be timed-out

Traits§

Keccak256
A trait that returns a 256 bit keccak has of some bytes

Functions§

hash_get_response
Return the keccak256 of a get response
hash_post_response
Return the keccak256 of a post response
hash_request
Return the keccak256 hash of a request
hash_response
Return the keccak256 of a response