[−][src]Struct sapling_crypto_ce::circuit::ecc::EdwardsPoint
Methods
impl<E: JubjubEngine> EdwardsPoint<E>
[src]
pub fn get_x(&self) -> &AllocatedNum<E>
[src]
pub fn get_y(&self) -> &AllocatedNum<E>
[src]
pub fn assert_not_small_order<CS>(
&self,
cs: CS,
params: &E::Params
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<E>,
[src]
&self,
cs: CS,
params: &E::Params
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<E>,
pub fn inputize<CS>(&self, cs: CS) -> Result<(), SynthesisError> where
CS: ConstraintSystem<E>,
[src]
CS: ConstraintSystem<E>,
pub fn repr<CS>(&self, cs: CS) -> Result<Vec<Boolean>, SynthesisError> where
CS: ConstraintSystem<E>,
[src]
CS: ConstraintSystem<E>,
This converts the point into a representation.
pub fn witness<Order, CS>(
cs: CS,
p: Option<Point<E, Order>>,
params: &E::Params
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
[src]
cs: CS,
p: Option<Point<E, Order>>,
params: &E::Params
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
This 'witnesses' a point inside the constraint system. It guarantees the point is on the curve.
pub fn conditionally_select<CS>(
&self,
cs: CS,
condition: &Boolean
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
[src]
&self,
cs: CS,
condition: &Boolean
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
Returns self
if condition is true, and the neutral
element (0, 1) otherwise.
pub fn mul<CS>(
&self,
cs: CS,
by: &[Boolean],
params: &E::Params
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
[src]
&self,
cs: CS,
by: &[Boolean],
params: &E::Params
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
Performs a scalar multiplication of this twisted Edwards point by a scalar represented as a sequence of booleans in little-endian bit order.
pub fn interpret<CS>(
cs: CS,
x: &AllocatedNum<E>,
y: &AllocatedNum<E>,
params: &E::Params
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
[src]
cs: CS,
x: &AllocatedNum<E>,
y: &AllocatedNum<E>,
params: &E::Params
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
pub fn double<CS>(
&self,
cs: CS,
params: &E::Params
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
[src]
&self,
cs: CS,
params: &E::Params
) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<E>,
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>,
Perform addition between any two points
Trait Implementations
impl<E: Clone + Engine> Clone for EdwardsPoint<E>
[src]
fn clone(&self) -> EdwardsPoint<E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<E> Send for EdwardsPoint<E> where
<E as ScalarEngine>::Fr: Send,
<E as ScalarEngine>::Fr: Send,
impl<E> Sync for EdwardsPoint<E> where
<E as ScalarEngine>::Fr: Sync,
<E as ScalarEngine>::Fr: Sync,
impl<E> Unpin for EdwardsPoint<E> where
<E as ScalarEngine>::Fr: Unpin,
<E as ScalarEngine>::Fr: Unpin,
impl<E> UnwindSafe for EdwardsPoint<E> where
<E as ScalarEngine>::Fr: UnwindSafe,
<E as ScalarEngine>::Fr: UnwindSafe,
impl<E> RefUnwindSafe for EdwardsPoint<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> 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<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