Module roothash

Source
Expand description

Consensus roothash structures.

§Note

This MUST be kept in sync with go/roothash/api.

Structs§

AnnotatedBlock
Runtime block annotated with consensus information.
Block
Runtime block.
ComputeResultsHeader
The header of a computed batch output by a runtime. This header is a compressed representation (e.g., hashes instead of full content) of the actual results.
ExecutorCommitment
A commitment to results of processing a proposed runtime block.
ExecutorCommitmentHeader
The header of an executor commitment.
Header
Block header.
IncomingMessage
An incoming message emitted by the consensus layer to be processed by the runtime.
LivenessStatistics
Per-epoch liveness statistics for nodes.
MessageEvent
Result of a message being processed by the consensus layer.
Pool
A pool of commitments that can be used to perform discrepancy detection.
RoundResults
Information about how a particular round was executed by the consensus layer.
RoundRoots
Per-round state and I/O roots that are stored in consensus state.
RuntimeState
Per-runtime state.

Enums§

Error
Errors emitted by the roothash module.
ExecutorCommitmentFailure
The executor commitment failure reason.
GovernanceMessage
HeaderType
Header type.
Message
A message that can be emitted by the runtime to be processed by the consensus layer.
RegistryMessage
StakingMessage

Constants§

COMPUTE_RESULTS_HEADER_SIGNATURE_CONTEXT
The signature context used to sign compute results headers with RAK.
EXECUTOR_COMMITMENT_SIGNATURE_CONTEXT
The signature context used to sign executor worker commitments.

Traits§

MessageValidator
A trait that validates messages for validity. It can be used for gas accounting.
NodeLookup
A trait for looking up registry node descriptors.
OpenCommitment
Verified roothash commitment.