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
. - DrbSeed
Input - Alias for DRB seed input for
compute_drb_result
, serialized from the QC signature.