select_leader

Function select_leader 

Source
pub fn select_leader<S, P: Clone>(
    participants: &[P],
    round: Round,
    seed: Option<S::Seed>,
) -> (P, u32)
where S: Scheme,
Expand description

Selects the leader for a given round using scheme-provided randomness seed when available.

If the active Scheme exposes a seed (e.g. BLS threshold certificates), the seed is encoded and reduced modulo the number of participants. Otherwise we fall back to simple round-robin using the view number.

ยงPanics

Panics if participants is empty.