Function hotshot_types::drb::leader

source ยท
pub fn leader<TYPES: NodeType>(
    view_number: usize,
    stake_table: &[<TYPES::SignatureKey as SignatureKey>::StakeTableEntry],
    drb_result: DrbResult,
) -> TYPES::SignatureKey
Expand description

Use the DRB result to get the leader.

The DRB result is the output of a spawned compute_drb_result call.