Module consensus

Module consensus 

Source
Expand description

Consensus and state machine client definitions

Structs§

IntermediateState
We define the intermediate state as the commitment to the global state trie at a given height
StateCommitment
The state commitment represents a commitment to the state machine’s state (trie) at a given height. Optionally holds a commitment to the ISMP request/response trie if supported by the state machine.
StateMachineHeight
Identifies a state machine at a given height
StateMachineId
Since consensus systems may come to conensus about the state of multiple state machines, we identify each state machine individually.

Traits§

ConsensusClient
We define the consensus client as a module that handles logic for consensus proof verification, and State-Proof verification as well.
StateMachineClient
A state machine client. An abstraction for the mechanism of state proof verification for state machines

Type Aliases§

ConsensusClientId
An identifier for Consensus client implementations
ConsensusStateId
An identifier for a consensus states
VerifiedCommitments
A map of state machine identifier to verified state commitments