logo
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

Perform a modular reduction, returning a field element.

Implementors