[−][src]Struct snarkos_gadgets::curves::templates::twisted_edwards::MontgomeryAffineGadget
Fields
x: FG
y: 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]
p: &TEAffine<P>
) -> Result<(P::BaseField, P::BaseField), SynthesisError>
pub fn from_edwards<CS: ConstraintSystem<F>>(
cs: CS,
p: &TEAffine<P>
) -> Result<Self, SynthesisError>
[src]
cs: CS,
p: &TEAffine<P>
) -> Result<Self, SynthesisError>
pub fn into_edwards<CS: ConstraintSystem<F>>(
&self,
cs: CS
) -> Result<AffineGadget<P, F, FG>, SynthesisError>
[src]
&self,
cs: CS
) -> Result<AffineGadget<P, F, FG>, SynthesisError>
pub fn add<CS: ConstraintSystem<F>>(
&self,
cs: CS,
other: &Self
) -> Result<Self, SynthesisError>
[src]
&self,
cs: CS,
other: &Self
) -> Result<Self, SynthesisError>
Trait Implementations
impl<P: TEModelParameters, F: Field, FG: FieldGadget<P::BaseField, F>> Clone for MontgomeryAffineGadget<P, F, FG> where
FG: Clone,
[src]
FG: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<P: TEModelParameters, F: Field, FG: FieldGadget<P::BaseField, F>> Debug for MontgomeryAffineGadget<P, F, FG> where
P: TEModelParameters,
F: Field,
[src]
P: TEModelParameters,
F: Field,
Auto Trait Implementations
impl<P, F, FG> RefUnwindSafe for MontgomeryAffineGadget<P, F, FG> where
F: RefUnwindSafe,
FG: RefUnwindSafe,
P: RefUnwindSafe,
F: RefUnwindSafe,
FG: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, F, FG> Send for MontgomeryAffineGadget<P, F, FG> where
FG: Send,
FG: Send,
impl<P, F, FG> Sync for MontgomeryAffineGadget<P, F, FG> where
FG: Sync,
FG: Sync,
impl<P, F, FG> Unpin for MontgomeryAffineGadget<P, F, FG> where
F: Unpin,
FG: Unpin,
P: Unpin,
F: Unpin,
FG: Unpin,
P: Unpin,
impl<P, F, FG> UnwindSafe for MontgomeryAffineGadget<P, F, FG> where
F: UnwindSafe,
FG: UnwindSafe,
P: UnwindSafe,
F: UnwindSafe,
FG: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,