Trait hotshot_types::simple_certificate::Threshold

source ·
pub trait Threshold<TYPES: NodeType> {
    // Required method
    fn threshold<MEMBERSHIP: Membership<TYPES>>(
        membership: &MEMBERSHIP,
        epoch: TYPES::Epoch,
    ) -> u64;
}
Expand description

Trait which allows use to inject different threshold calculations into a Certificate type

Required Methods§

source

fn threshold<MEMBERSHIP: Membership<TYPES>>( membership: &MEMBERSHIP, epoch: TYPES::Epoch, ) -> u64

Calculate a threshold based on the membership

Object Safety§

This trait is not object safe.

Implementors§