fn ensure_dealers_contained_in_resharing_committee(
        dealers: &NiDkgDealers,
        resharing_transcript: &NiDkgTranscript,
    ) -> Result<(), NiDkgConfigValidationError> {
        if !dealers
            .get()
            .is_subset(resharing_transcript.committee.get())
        {
            let dealers = dealers.get();
            let committee = &resharing_transcript.committee;
            return Err(NiDkgConfigValidationError::DealersNotInResharingCommittee {
                dealers_missing: dealers.difference(committee.get()).cloned().collect(),
                dealers_existing: dealers.intersection(committee.get()).cloned().collect(),
                resharing_committee: committee.get().clone(),
            });
        }
        Ok(())
    }
/// Ensures dealers are all contained in resharing committee
Ensures dealers are all contained in resharing committee
Ensures dealers are all contained in resharing committee
fn ensure_dealers_contained_in_resharing_committee(
        dealers: &NiDkgDealers,
        resharing_transcript: &NiDkgTranscript,
    ) -> Result<(), NiDkgConfigValidationError> {
        if !dealers
            .get()
            .is_subset(resharing_transcript.committee.get())
        {
            let dealers = dealers.get();
            let committee = &resharing_transcript.committee;
            return Err(NiDkgConfigValidationError::DealersNotInResharingCommittee {
                dealers_missing: dealers.difference(committee.get()).cloned().collect(),
                dealers_existing: dealers.intersection(committee.get()).cloned().collect(),
                resharing_committee: committee.get().clone(),
            });
        }
        Ok(())
    }
fn ensure_dealers_contained_in_resharing_committee ( dealers : & NiDkgDealers , resharing_transcript : & NiDkgTranscript , ) -> Result < ( ) , NiDkgConfigValidationError > { if ! dealers . get ( ) . is_subset ( resharing_transcript . committee . get ( ) ) { let dealers = dealers . get ( ) ; let committee = & resharing_transcript . committee ; return Err ( NiDkgConfigValidationError :: DealersNotInResharingCommittee { dealers_missing : dealers . difference ( committee . get ( ) ) . cloned ( ) . collect ( ) , dealers_existing : dealers . intersection ( committee . get ( ) ) . cloned ( ) . collect ( ) , resharing_committee : committee . get ( ) . clone ( ) , } ) ; } Ok ( ( ) ) }
Ensures dealers are all contained in resharing committee
Ensures dealers are all contained in resharing committee
dealers
&NiDkgDealers
resharing_transcript
&NiDkgTranscript
dealers
&NiDkgDealers
resharing_transcript
&NiDkgTranscript