[][src]Trait elliptic_curve::ops::Invert

pub trait Invert {
    type Output;
    pub fn invert(&self) -> CtOption<Self::Output>;
}

Perform an inversion on a field element (i.e. base field element or scalar)

Associated Types

type Output[src]

Field element type

Loading content...

Required methods

pub fn invert(&self) -> CtOption<Self::Output>[src]

Invert a field element.

Loading content...

Implementors

impl<C> Invert for NonZeroScalar<C> where
    C: Curve + ProjectiveArithmetic,
    FieldBytes<C>: From<Scalar<C>> + for<'r> From<&'r Scalar<C>>,
    Scalar<C>: PrimeField<Repr = FieldBytes<C>> + Invert
[src]

type Output = Scalar<C>

pub fn invert(&self) -> CtOption<Self::Output>[src]

Perform a scalar inversion

impl<F: Field> Invert for F[src]

type Output = F

Loading content...