[−][src]Struct sapling_crypto_ce::jubjub::montgomery::Point
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: Rng>(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]
&self,
scalar: S,
params: &E::Params
) -> Self
Trait Implementations
impl<E: JubjubEngine> From<Point<E, PrimeOrder>> for Point<E, Unknown>
[src]
impl<E: JubjubEngine, Subgroup> Clone for Point<E, Subgroup>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: JubjubEngine, Subgroup> PartialEq<Point<E, Subgroup>> for Point<E, Subgroup>
[src]
Auto Trait Implementations
impl<E, Subgroup> Send for Point<E, Subgroup> where
Subgroup: Send,
<E as ScalarEngine>::Fr: Send,
Subgroup: Send,
<E as ScalarEngine>::Fr: Send,
impl<E, Subgroup> Sync for Point<E, Subgroup> where
Subgroup: Sync,
<E as ScalarEngine>::Fr: Sync,
Subgroup: Sync,
<E as ScalarEngine>::Fr: Sync,
impl<E, Subgroup> Unpin for Point<E, Subgroup> where
Subgroup: Unpin,
<E as ScalarEngine>::Fr: Unpin,
Subgroup: Unpin,
<E as ScalarEngine>::Fr: Unpin,
impl<E, Subgroup> UnwindSafe for Point<E, Subgroup> where
Subgroup: UnwindSafe,
<E as ScalarEngine>::Fr: UnwindSafe,
Subgroup: UnwindSafe,
<E as ScalarEngine>::Fr: UnwindSafe,
impl<E, Subgroup> RefUnwindSafe for Point<E, Subgroup> where
Subgroup: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
Subgroup: 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