pub fn individual_public_key(
    public_coefficients: &PublicCoefficientsBytes,
    index: NodeIndex,
) -> CryptoResult<PublicKeyBytes> {
    let public_coefficients = PublicCoefficients::try_from(public_coefficients)?;
    let public_key: PublicKey = crypto::individual_public_key(&public_coefficients, index);
    Ok(PublicKeyBytes::from(public_key))
}
/// Derives the public key of one signatory from the `public_coefficients`.
///
/// # Arguments
/// * `public_coefficients` is the public output of a key generation.
/// * `index` is the position of the signatory in the list of signatories.
/// # Panics
/// This method is not expected to panic.
/// # Errors
/// If the `public_coefficients` cannot be parsed, this will return an error.
Derives the public key of one signatory from the `public_coefficients`.
Derives the public key of one signatory from the ` public_coefficients ` .
pub fn individual_public_key(
    public_coefficients: &PublicCoefficientsBytes,
    index: NodeIndex,
) -> CryptoResult<PublicKeyBytes> {
    let public_coefficients = PublicCoefficients::try_from(public_coefficients)?;
    let public_key: PublicKey = crypto::individual_public_key(&public_coefficients, index);
    Ok(PublicKeyBytes::from(public_key))
}
pub fn individual_public_key ( public_coefficients : & PublicCoefficientsBytes , index : NodeIndex , ) -> CryptoResult < PublicKeyBytes > { let public_coefficients = PublicCoefficients :: try_from ( public_coefficients ) ? ; let public_key : PublicKey = crypto :: individual_public_key ( & public_coefficients , index ) ; Ok ( PublicKeyBytes :: from ( public_key ) ) }
Derives the public key of one signatory from the `public_coefficients`.
Derives the public key of one signatory from the ` public_coefficients ` .
public_coefficients
&PublicCoefficientsBytes
index
NodeIndex
public_coefficients
&PublicCoefficientsBytes
index
NodeIndex
panics
This method is not expected to panic.
This method is not expected to panic .
errors
If the `public_coefficients` cannot be parsed, this will return an error.
If the ` public_coefficients ` cannot be parsed this will return an error .