[][src]Struct sapling_crypto_ce::circuit::baby_ecc::MontgomeryPoint

pub struct MontgomeryPoint<E: Engine> { /* fields omitted */ }

Methods

impl<E: JubjubEngine> MontgomeryPoint<E>[src]

pub fn into_edwards<CS>(
    &self,
    cs: CS,
    params: &E::Params
) -> Result<EdwardsPoint<E>, SynthesisError> where
    CS: ConstraintSystem<E>, 
[src]

Converts an element in the prime order subgroup into a point in the birationally equivalent twisted Edwards curve.

pub fn interpret_unchecked(x: Num<E>, y: Num<E>) -> Self[src]

Interprets an (x, y) pair as a point in Montgomery, does not check that it's on the curve. Useful for constants and window table lookups.

pub fn add<CS>(
    &self,
    cs: CS,
    other: &Self,
    params: &E::Params
) -> Result<Self, SynthesisError> where
    CS: ConstraintSystem<E>, 
[src]

Performs an affine point addition, not defined for coincident points.

Auto Trait Implementations

impl<E> Send for MontgomeryPoint<E> where
    <E as ScalarEngine>::Fr: Send

impl<E> Sync for MontgomeryPoint<E> where
    <E as ScalarEngine>::Fr: Sync

impl<E> Unpin for MontgomeryPoint<E> where
    <E as ScalarEngine>::Fr: Unpin

impl<E> UnwindSafe for MontgomeryPoint<E> where
    <E as ScalarEngine>::Fr: UnwindSafe

impl<E> RefUnwindSafe for MontgomeryPoint<E> where
    <E as ScalarEngine>::Fr: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self