Trait elliptic_curve::ops::Reduce[][src]

pub trait Reduce<UInt: Integer + ArrayEncoding>: Sized {
    fn from_uint_reduced(n: UInt) -> Self;

    fn from_be_bytes_reduced(bytes: ByteArray<UInt>) -> Self { ... }
fn from_le_bytes_reduced(bytes: ByteArray<UInt>) -> Self { ... } }
Expand description

Modular reduction.

Required methods

Perform a modular reduction, returning a field element.

Provided methods

Interpret the given byte array as a big endian integer and perform a modular reduction.

Interpret the given byte array as a big endian integer and perform a modular reduction.

Implementors