pub fn dealings_with_pops(
        dealer_keys: &[(CspEncryptionPublicKey, CspPop)],
        dealings: &BTreeMap<CspEncryptionPublicKey, CspDealing>,
    ) -> Vec<((CspEncryptionPublicKey, CspPop), CspDealing)> {
        dealer_keys
            .iter()
            .filter_map(|public_key_with_pop| {
                dealings
                    .get(&public_key_with_pop.0)
                    .map(|dealing| (*public_key_with_pop, dealing.clone()))
            })
            .collect()
    }
/// Adds the PoP to each entry in a map of dealings, as used by
/// dkg_create_response.
Adds the PoP to each entry in a map of dealings, as used by
dkg_create_response.
Adds the PoP to each entry in a map of dealings as used by dkg_create_response .
pub fn dealings_with_pops(
        dealer_keys: &[(CspEncryptionPublicKey, CspPop)],
        dealings: &BTreeMap<CspEncryptionPublicKey, CspDealing>,
    ) -> Vec<((CspEncryptionPublicKey, CspPop), CspDealing)> {
        dealer_keys
            .iter()
            .filter_map(|public_key_with_pop| {
                dealings
                    .get(&public_key_with_pop.0)
                    .map(|dealing| (*public_key_with_pop, dealing.clone()))
            })
            .collect()
    }
pub fn dealings_with_pops ( dealer_keys : & [ ( CspEncryptionPublicKey , CspPop ) ] , dealings : & BTreeMap < CspEncryptionPublicKey , CspDealing > , ) -> Vec < ( ( CspEncryptionPublicKey , CspPop ) , CspDealing ) > { dealer_keys . iter ( ) . filter_map ( | public_key_with_pop | { dealings . get ( & public_key_with_pop . 0 ) . map ( | dealing | ( * public_key_with_pop , dealing . clone ( ) ) ) } ) . collect ( ) }
Adds the PoP to each entry in a map of dealings, as used by
dkg_create_response.
Adds the PoP to each entry in a map of dealings as used by dkg_create_response .
dealer_keys
&[(CspEncryptionPublicKey, CspPop)]
dealings
&BTreeMap<CspEncryptionPublicKey, CspDealing>
dealer_keys
&[(CspEncryptionPublicKey, CspPop)]
dealings
&BTreeMap<CspEncryptionPublicKey, CspDealing>