Trait elliptic_curve::ops::ReduceNonZero
source · pub trait ReduceNonZero<UInt: Integer + ArrayEncoding>: Sized {
fn from_uint_reduced_nonzero(n: UInt) -> Self;
}
Expand description
Modular reduction to a non-zero output.
This trait is primarily intended for use by curve implementations such
as the k256
and p256
crates.
End users should use the Reduce
impl on
NonZeroScalar
instead.
Required Methods§
sourcefn from_uint_reduced_nonzero(n: UInt) -> Self
fn from_uint_reduced_nonzero(n: UInt) -> Self
Perform a modular reduction, returning a field element.