[][src]Struct sapling_crypto_ce::circuit::ecc::EdwardsPoint

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

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]

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

pub fn repr<CS>(&self, cs: CS) -> Result<Vec<Boolean>, SynthesisError> where
    CS: ConstraintSystem<E>, 
[src]

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]

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]

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]

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]

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

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

Perform addition between any two points

Trait Implementations

impl<E: Clone + Engine> Clone for EdwardsPoint<E>[src]

Auto Trait Implementations

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

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

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

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

impl<E> RefUnwindSafe for EdwardsPoint<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> 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<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