pub trait Reduce<const N: usize> {
// Required methods
fn from_be_array_mod_order(bytes: &[u8; N]) -> Self;
fn from_le_array_mod_order(bytes: &[u8; N]) -> Self;
}
Expand description
Reduces an integer represented as array of N
bytes modulo curve (prime) order
Required Methods§
Sourcefn from_be_array_mod_order(bytes: &[u8; N]) -> Self
fn from_be_array_mod_order(bytes: &[u8; N]) -> Self
Interprets bytes
as big-endian encoding of an integer, returns this
integer modulo curve (prime) order
Sourcefn from_le_array_mod_order(bytes: &[u8; N]) -> Self
fn from_le_array_mod_order(bytes: &[u8; N]) -> Self
Interprets bytes
as little-endian encoding of an integer, returns this
integer modulo curve (prime) order
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.