Module drb

Source
Expand description

Holds the types and functions for DRB computation.

Modules§

election
Functions for leader selection based on the DRB.

Structs§

DrbInput
DrbResults
Seeds for DRB computation and computed results.

Constants§

DIFFICULTY_LEVEL
Arbitrary number of times the hash function will be repeatedly called.
DRB_CHECKPOINT_INTERVAL
Interval at which to store the results
INITIAL_DRB_RESULT
DRB result for epoch 1 and 2.
INITIAL_DRB_SEED_INPUT
DRB seed input for epoch 1 and 2.
KEEP_PREVIOUS_RESULT_COUNT
Number of previous results and seeds to keep

Functions§

compute_drb_result
Compute the DRB result for the leader rotation.
difficulty_level
Difficulty level of the DRB calculation.

Type Aliases§

DrbResult
Alias for DRB result from compute_drb_result.
DrbSeedInput
Alias for DRB seed input for compute_drb_result, serialized from the QC signature.