[][src]Struct wagyu_zcash::librustzcash::sapling_crypto::jubjub::montgomery::Point

pub struct Point<E: JubjubEngine, Subgroup> { /* fields omitted */ }

Methods

impl<E: JubjubEngine> Point<E, Unknown>[src]

pub fn get_for_x(x: E::Fr, sign: bool, params: &E::Params) -> Option<Self>[src]

#[must_use]pub fn mul_by_cofactor(&self, params: &E::Params) -> Point<E, PrimeOrder>[src]

This guarantees the point is in the prime order subgroup

pub fn rand<R: RngCore>(rng: &mut R, params: &E::Params) -> Self[src]

impl<E: JubjubEngine, Subgroup> Point<E, Subgroup>[src]

pub fn from_edwards(e: &Point<E, Subgroup>, params: &E::Params) -> Self[src]

Convert from an Edwards point

pub fn as_prime_order(&self, params: &E::Params) -> Option<Point<E, PrimeOrder>>[src]

Attempts to cast this as a prime order element, failing if it's not in the prime order subgroup.

pub fn zero() -> Self[src]

pub fn into_xy(&self) -> Option<(E::Fr, E::Fr)>[src]

#[must_use]pub fn negate(&self) -> Self[src]

#[must_use]pub fn double(&self, params: &E::Params) -> Self[src]

#[must_use]pub fn add(&self, other: &Self, params: &E::Params) -> Self[src]

#[must_use]pub fn mul<S: Into<<E::Fs as PrimeField>::Repr>>(
    &self,
    scalar: S,
    params: &E::Params
) -> Self
[src]

Trait Implementations

impl<E: JubjubEngine, Subgroup> Clone for Point<E, Subgroup>[src]

impl<E: JubjubEngine> From<Point<E, PrimeOrder>> for Point<E, Unknown>[src]

impl<E: JubjubEngine, Subgroup> PartialEq<Point<E, Subgroup>> for Point<E, Subgroup>[src]

Auto Trait Implementations

impl<E, Subgroup> RefUnwindSafe for Point<E, Subgroup> where
    Subgroup: RefUnwindSafe,
    <E as ScalarEngine>::Fr: RefUnwindSafe

impl<E, Subgroup> Send for Point<E, Subgroup> where
    Subgroup: Send,
    <E as ScalarEngine>::Fr: Send

impl<E, Subgroup> Sync for Point<E, Subgroup> where
    Subgroup: Sync,
    <E as ScalarEngine>::Fr: Sync

impl<E, Subgroup> Unpin for Point<E, Subgroup> where
    Subgroup: Unpin,
    <E as ScalarEngine>::Fr: Unpin

impl<E, Subgroup> UnwindSafe for Point<E, Subgroup> where
    Subgroup: UnwindSafe,
    <E as ScalarEngine>::Fr: 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>,