Function fr32::bytes_into_fr

source ยท
pub fn bytes_into_fr(le_bytes: &[u8]) -> Result<Scalar>
Expand description

Takes a slice of bytes (little-endian, non-Montgomery form) and returns an Fr if byte slice is exactly 32 bytes and does not overflow. Otherwise, returns a BadFrBytesError.