pub fn fr_from_bytes_unchecked(bytes: &[u8; FR_SIZE]) -> Scalar {
    let mut le_bytes = [0u8; 64];

    for i in 0..FR_SIZE {
        le_bytes[i] = bytes[FR_SIZE - i - 1];
    }
    // le_bytes[32..64] left as zero
    Scalar::from_bytes_wide(&le_bytes)
}
/// Decode BLS12-381 field element from bytes (accepting out of range elements)
///
/// # Arguments
/// * `bytes`: encoding of a field element
/// # Returns
/// The decoded field element
Decode BLS12-381 field element from bytes (accepting out of range elements)
Decode BLS12 - 381 field element from bytes ( accepting out of range elements )
pub fn fr_from_bytes_unchecked(bytes: &[u8; FR_SIZE]) -> Scalar {
    let mut le_bytes = [0u8; 64];
    for i in 0..FR_SIZE {
        le_bytes[i] = bytes[FR_SIZE - i - 1];
    }
    // le_bytes[32..64] left as zero
    Scalar::from_bytes_wide(&le_bytes)
}
pub fn fr_from_bytes_unchecked ( bytes : & [ u8 ; FR_SIZE ] ) -> Scalar { let mut le_bytes = [ 0u8 ; 64 ] ; for i in 0 .. FR_SIZE { le_bytes [ i ] = bytes [ FR_SIZE - i - 1 ] ; } // le_bytes[32..64] left as zero Scalar :: from_bytes_wide ( & le_bytes ) }
Decode BLS12-381 field element from bytes (accepting out of range elements)
Decode BLS12 - 381 field element from bytes ( accepting out of range elements )
bytes
&[u8; FR_SIZE]
The decoded field element
The decoded field element
bytes
&[u8; FR_SIZE]