[−][src]Struct sapling_crypto_ce::circuit::baby_ecc::MontgomeryPoint
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]
&self,
cs: CS,
params: &E::Params
) -> Result<EdwardsPoint<E>, SynthesisError> where
CS: ConstraintSystem<E>,
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]
&self,
cs: CS,
other: &Self,
params: &E::Params
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
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,
<E as ScalarEngine>::Fr: Send,
impl<E> Sync for MontgomeryPoint<E> where
<E as ScalarEngine>::Fr: Sync,
<E as ScalarEngine>::Fr: Sync,
impl<E> Unpin for MontgomeryPoint<E> where
<E as ScalarEngine>::Fr: Unpin,
<E as ScalarEngine>::Fr: Unpin,
impl<E> UnwindSafe for MontgomeryPoint<E> where
<E as ScalarEngine>::Fr: UnwindSafe,
<E as ScalarEngine>::Fr: UnwindSafe,
impl<E> RefUnwindSafe for MontgomeryPoint<E> where
<E as ScalarEngine>::Fr: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self