pub fn dealings(
            dealings: BTreeMap<NodeIndex, CspNiDkgDealing>,
        ) -> Result<
            BTreeMap<NodeIndex, g20_internal_types::Dealing>,
            (NodeIndex, ni_dkg_errors::InvalidArgumentError),
        > {
            dealings
                .into_iter()
                .map(|(node_index, csp_dealing)| {
                    let dealing = dealing(csp_dealing).map_err(|error| (node_index, error))?;
                    Ok((node_index, dealing))
                })
                .collect()
        }
/// Converts a map of generic dealings to the variant used by
/// NiDkg_Groth20.
Converts a map of generic dealings to the variant used by
NiDkg_Groth20.
Converts a map of generic dealings to the variant used by NiDkg_Groth20 .
pub fn dealings(
            dealings: BTreeMap<NodeIndex, CspNiDkgDealing>,
        ) -> Result<
            BTreeMap<NodeIndex, g20_internal_types::Dealing>,
            (NodeIndex, ni_dkg_errors::InvalidArgumentError),
        > {
            dealings
                .into_iter()
                .map(|(node_index, csp_dealing)| {
                    let dealing = dealing(csp_dealing).map_err(|error| (node_index, error))?;
                    Ok((node_index, dealing))
                })
                .collect()
        }
pub fn dealings ( dealings : BTreeMap < NodeIndex , CspNiDkgDealing > , ) -> Result < BTreeMap < NodeIndex , g20_internal_types :: Dealing > , ( NodeIndex , ni_dkg_errors :: InvalidArgumentError ) , > { dealings . into_iter ( ) . map ( | ( node_index , csp_dealing ) | { let dealing = dealing ( csp_dealing ) . map_err ( | error | ( node_index , error ) ) ? ; Ok ( ( node_index , dealing ) ) } ) . collect ( ) }
Converts a map of generic dealings to the variant used by
NiDkg_Groth20.
Converts a map of generic dealings to the variant used by NiDkg_Groth20 .
dealings
BTreeMap<NodeIndex, CspNiDkgDealing>
dealings
BTreeMap<NodeIndex, CspNiDkgDealing>