/// Deserializes a `PublicCoefficients` from a *trusted* source.
///
/// # Security Notice
/// This uses the "unchecked" G2 deserialization (no subgroup check),
/// so should only be used on `InternalPublicCoefficients` obtained
/// from a known, trusted source.
Deserializes a `PublicCoefficients` from a *trusted* source.
Deserializes a ` PublicCoefficients ` from a * trusted * source .
pub fn from_trusted_bytes(
        bytes: &InternalPublicCoefficients,
    ) -> Result<PublicCoefficients, CryptoError> {
        let coefficients: Result<Vec<PublicKey>, ThresholdSigPublicKeyBytesConversionError> = bytes
            .coefficients
            .iter()
            .map(PublicKey::from_trusted_bytes)
            .collect();
        let coefficients = coefficients?;
        Ok(PublicCoefficients { coefficients })
    }
pub fn from_trusted_bytes ( bytes : & InternalPublicCoefficients , ) -> Result < PublicCoefficients , CryptoError > { let coefficients : Result < Vec < PublicKey > , ThresholdSigPublicKeyBytesConversionError > = bytes . coefficients . iter ( ) . map ( PublicKey :: from_trusted_bytes ) . collect ( ) ; let coefficients = coefficients ? ; Ok ( PublicCoefficients { coefficients } ) }
Deserializes a `PublicCoefficients` from a *trusted* source.
Deserializes a ` PublicCoefficients ` from a * trusted * source .
bytes
&InternalPublicCoefficients
security notice
This uses the "unchecked" G2 deserialization (no subgroup check),
so should only be used on `InternalPublicCoefficients` obtained
from a known, trusted source.
This uses the " unchecked " G2 deserialization ( no subgroup check ) so should only be used on ` InternalPublicCoefficients ` obtained from a known trusted source .