pub fn threshold_for_subnet_of_size(&self, subnet_size: usize) -> Threshold {
        let committee_size = get_committee_size(subnet_size);
        let f = crate::consensus::get_faults_tolerated(committee_size);
        match self {
            NiDkgTag::LowThreshold => f + 1,
            NiDkgTag::HighThreshold => committee_size - f,
        }
    }
/// Returns the threshold (minimal number of nodes) required to accomplish a
/// certain crypto-operation.
Returns the threshold (minimal number of nodes) required to accomplish a
certain crypto-operation.
Returns the threshold ( minimal number of nodes ) required to accomplish a certain crypto - operation .
pub fn threshold_for_subnet_of_size(&self, subnet_size: usize) -> Threshold {
        let committee_size = get_committee_size(subnet_size);
        let f = crate::consensus::get_faults_tolerated(committee_size);
        match self {
            NiDkgTag::LowThreshold => f + 1,
            NiDkgTag::HighThreshold => committee_size - f,
        }
    }
pub fn threshold_for_subnet_of_size ( & self , subnet_size : usize ) -> Threshold { let committee_size = get_committee_size ( subnet_size ) ; let f = crate :: consensus :: get_faults_tolerated ( committee_size ) ; match self { NiDkgTag :: LowThreshold => f + 1 , NiDkgTag :: HighThreshold => committee_size - f , } }
Returns the threshold (minimal number of nodes) required to accomplish a
certain crypto-operation.
Returns the threshold ( minimal number of nodes ) required to accomplish a certain crypto - operation .
&self
subnet_size
usize
&self
subnet_size
usize