pub fn combine(
    signatures: &[IndividualSignatureBytes],
) -> Result<CombinedSignatureBytes, CryptoError> {
    let signatures: Result<Vec<IndividualSignature>, CryptoError> = signatures
        .iter()
        .cloned()
        .map(|signature_bytes| signature_bytes.try_into())
        .collect();
    let signature = crypto::combine_signatures(&signatures?);
    Ok(signature.into())
}
/// Combines individual signatures into a multisignature.
///
/// # Errors
/// * `CryptoError::MalformedSignature` if any of the `signatures` cannot be
///   parsed as a G1 point.
Combines individual signatures into a multisignature.
Combines individual signatures into a multisignature .
pub fn combine(
    signatures: &[IndividualSignatureBytes],
) -> Result<CombinedSignatureBytes, CryptoError> {
    let signatures: Result<Vec<IndividualSignature>, CryptoError> = signatures
        .iter()
        .cloned()
        .map(|signature_bytes| signature_bytes.try_into())
        .collect();
    let signature = crypto::combine_signatures(&signatures?);
    Ok(signature.into())
}
pub fn combine ( signatures : & [ IndividualSignatureBytes ] , ) -> Result < CombinedSignatureBytes , CryptoError > { let signatures : Result < Vec < IndividualSignature > , CryptoError > = signatures . iter ( ) . cloned ( ) . map ( | signature_bytes | signature_bytes . try_into ( ) ) . collect ( ) ; let signature = crypto :: combine_signatures ( & signatures ? ) ; Ok ( signature . into ( ) ) }
Combines individual signatures into a multisignature.
Combines individual signatures into a multisignature .
signatures
&[IndividualSignatureBytes]
signatures
&[IndividualSignatureBytes]
errors
`CryptoError::MalformedSignature` if any of the `signatures` cannot be
parsed as a G1 point.
` CryptoError :: MalformedSignature ` if any of the ` signatures ` cannot be parsed as a G1 point .