/// Ensures #dealers >= resharing threshold
Ensures #dealers >= resharing threshold
Ensures #dealers > = resharing threshold
fn ensure_sufficient_dealers_for_resharing_threshold(
        dealers: &NiDkgDealers,
        resharing_transcript: &NiDkgTranscript,
    ) -> Result<(), NiDkgConfigValidationError> {
        if dealers.count() < resharing_transcript.threshold.get() {
            return Err(
                NiDkgConfigValidationError::InsufficientDealersForResharingThreshold {
                    dealer_count: dealers.count(),
                    resharing_threshold: resharing_transcript.threshold,
                },
            );
        }
        Ok(())
    }
fn ensure_sufficient_dealers_for_resharing_threshold ( dealers : & NiDkgDealers , resharing_transcript : & NiDkgTranscript , ) -> Result < ( ) , NiDkgConfigValidationError > { if dealers . count ( ) < resharing_transcript . threshold . get ( ) { return Err ( NiDkgConfigValidationError :: InsufficientDealersForResharingThreshold { dealer_count : dealers . count ( ) , resharing_threshold : resharing_transcript . threshold , } , ) ; } Ok ( ( ) ) }
Ensures #dealers >= resharing threshold
Ensures #dealers > = resharing threshold
dealers
&NiDkgDealers
resharing_transcript
&NiDkgTranscript