/// Decode BLS12-381 field element from bytes
///
/// # Arguments
/// * `bytes`: encoding of a field element
/// # Returns
/// The decoded field element
Decode BLS12-381 field element from bytes
Decode BLS12 - 381 field element from bytes
pub fn fr_from_bytes(bytes: &[u8; FR_SIZE]) -> FrRepr {
    let mut ans = FrRepr([0; 4]);
    let mut reader = &bytes[..];
    ans.read_be(&mut reader)
        .expect("Insufficient input material");
    ans
}
pub fn fr_from_bytes ( bytes : & [ u8 ; FR_SIZE ] ) -> FrRepr { let mut ans = FrRepr ( [ 0 ; 4 ] ) ; let mut reader = & bytes [ .. ] ; ans . read_be ( & mut reader ) . expect ( " " ) ; ans }
Decode BLS12-381 field element from bytes
Decode BLS12 - 381 field element from bytes
The decoded field element
The decoded field element
bytes
&[u8; FR_SIZE]