/// Encode BLS12-381 field element to bytes
///
/// # Arguments
/// * `fr` a field element
/// # Returns
/// The encoded element
Encode BLS12-381 field element to bytes
Encode BLS12 - 381 field element to bytes
pub fn fr_to_bytes(fr: &FrRepr) -> [u8; FR_SIZE] {
    let mut ans = [0u8; FR_SIZE];
    fr.write_be(&mut ans[0..])
        .expect("Insufficient output space");
    ans
}
pub fn fr_to_bytes ( fr : & FrRepr ) -> [ u8 ; FR_SIZE ] { let mut ans = [ 0u8 ; FR_SIZE ] ; fr . write_be ( & mut ans [ 0 .. ] ) . expect ( " " ) ; ans }
Encode BLS12-381 field element to bytes
Encode BLS12 - 381 field element to bytes
The encoded element
The encoded element
fr
&FrRepr