[][src]Struct snarkos_gadgets::curves::templates::twisted_edwards::MontgomeryAffineGadget

#[must_use]pub struct MontgomeryAffineGadget<P: TEModelParameters, F: Field, FG: FieldGadget<P::BaseField, F>> {
    pub x: FG,
    pub y: FG,
    // some fields omitted
}

Fields

x: FGy: FG

Implementations

impl<P: TEModelParameters, F: Field, FG: FieldGadget<P::BaseField, F>> MontgomeryAffineGadget<P, F, FG>[src]

pub fn new(x: FG, y: FG) -> Self[src]

pub fn from_edwards_to_coords(
    p: &TEAffine<P>
) -> Result<(P::BaseField, P::BaseField), SynthesisError>
[src]

pub fn from_edwards<CS: ConstraintSystem<F>>(
    cs: CS,
    p: &TEAffine<P>
) -> Result<Self, SynthesisError>
[src]

pub fn into_edwards<CS: ConstraintSystem<F>>(
    &self,
    cs: CS
) -> Result<AffineGadget<P, F, FG>, SynthesisError>
[src]

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

Trait Implementations

impl<P: TEModelParameters, F: Field, FG: FieldGadget<P::BaseField, F>> Clone for MontgomeryAffineGadget<P, F, FG> where
    FG: Clone
[src]

impl<P: TEModelParameters, F: Field, FG: FieldGadget<P::BaseField, F>> Debug for MontgomeryAffineGadget<P, F, FG> where
    P: TEModelParameters,
    F: Field
[src]

Auto Trait Implementations

impl<P, F, FG> RefUnwindSafe for MontgomeryAffineGadget<P, F, FG> where
    F: RefUnwindSafe,
    FG: RefUnwindSafe,
    P: RefUnwindSafe

impl<P, F, FG> Send for MontgomeryAffineGadget<P, F, FG> where
    FG: Send

impl<P, F, FG> Sync for MontgomeryAffineGadget<P, F, FG> where
    FG: Sync

impl<P, F, FG> Unpin for MontgomeryAffineGadget<P, F, FG> where
    F: Unpin,
    FG: Unpin,
    P: Unpin

impl<P, F, FG> UnwindSafe for MontgomeryAffineGadget<P, F, FG> where
    F: UnwindSafe,
    FG: UnwindSafe,
    P: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,