pub trait MulIdentity: Sized + Mul<Output = Self> {
    const MUL_IDENTITY: Self;
    const ONE: Self = Self::MUL_IDENTITY;
}
Expand description

Safety

This trait is safe only when for any a, a * MUL_IDENTITY = MUL_IDENTITY * a = a

Required Associated Constants§

source

const MUL_IDENTITY: Self

Provided Associated Constants§

source

const ONE: Self = Self::MUL_IDENTITY

Implementors§

source§

impl<I, M> MulIdentity for FpElement<I, M>where I: BigIntOpsExt + IsBigInt, M: Montgomery<I>,

Safety

1 is the multiplicative ideneity for biguint

source§

const MUL_IDENTITY: Self = _