Trait generic_ec_core::Reduce

source ·
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§

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§