Module hotshot_types::drb
source · Expand description
Holds the types and functions for DRB computation.
Structs§
- Seeds for DRB computation and computed results.
Constants§
- Arbitrary number of times the hash function will be repeatedly called.
- DRB result for epoch 1 and 2.
- DRB seed input for epoch 1 and 2.
- Number of previous results and seeds to keep
Functions§
- Compute the DRB result for the leader rotation.
- Difficulty level of the DRB calculation.
- Use the DRB result to get the leader.
Type Aliases§
- Alias for in-progress DRB computation task, if there’s any.
- Alias for DRB result from
compute_drb_result
. - Alias for DRB seed input for
compute_drb_result
, serialized from the QC signature.