Crate fr32

Crate fr32 

Source

Structs§

Fr32Reader
An io::Reader that converts unpadded input into valid Fr32 padded output.

Enums§

Error

Functions§

bytes_into_fr
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.
bytes_into_fr_repr_safe
Converts a slice of 32 bytes (little-endian, non-Montgomery form) into an Fr::Repr by zeroing the most signficant two bits of le_bytes.
fr_into_bytes
Takes an Fr and returns a vector of exactly 32 bytes guaranteed to contain a valid Fr.
fr_into_bytes_slice
Takes an Fr and copies exactly 32 bytes guaranteed to contain a valid Fr into the fr_bytes output slice.
to_padded_bytes
to_unpadded_bytes
u64_into_fr
write_unpadded

Type Aliases§

Fr32Ary
Array whose little-endian value represents an Fr. Invariants:
Fr32Vec
Contains one or more 32-byte chunks whose little-endian values represent Frs. Invariants: