[−][src]Struct jubjub::AffineNielsPoint
This is a pre-processed version of an affine point (u, v)
in the form (v + u, v - u, u * v * 2d)
. This can be added to an
ExtendedPoint
.
Methods
impl AffineNielsPoint
[src]
pub const fn identity() -> Self
[src]
Constructs this point from the neutral element (0, 1)
.
pub fn multiply_bits(&self, by: &[u8; 32]) -> ExtendedPoint
[src]
Multiplies this point by the specific little-endian bit pattern in the given byte array, ignoring the highest four bits.
Trait Implementations
impl<'a, 'b> Add<&'b AffineNielsPoint> for &'a ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the +
operator.
fn add(self, other: &'b AffineNielsPoint) -> ExtendedPoint
[src]
impl<'b> Add<&'b AffineNielsPoint> for ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the +
operator.
fn add(self, rhs: &'b AffineNielsPoint) -> ExtendedPoint
[src]
impl<'a> Add<AffineNielsPoint> for &'a ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the +
operator.
fn add(self, rhs: AffineNielsPoint) -> ExtendedPoint
[src]
impl Add<AffineNielsPoint> for ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the +
operator.
fn add(self, rhs: AffineNielsPoint) -> ExtendedPoint
[src]
impl<'a, 'b> Sub<&'b AffineNielsPoint> for &'a ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the -
operator.
fn sub(self, other: &'b AffineNielsPoint) -> ExtendedPoint
[src]
impl<'b> Sub<&'b AffineNielsPoint> for ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the -
operator.
fn sub(self, rhs: &'b AffineNielsPoint) -> ExtendedPoint
[src]
impl<'a> Sub<AffineNielsPoint> for &'a ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the -
operator.
fn sub(self, rhs: AffineNielsPoint) -> ExtendedPoint
[src]
impl Sub<AffineNielsPoint> for ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the -
operator.
fn sub(self, rhs: AffineNielsPoint) -> ExtendedPoint
[src]
impl<'a, 'b> Mul<&'b Fr> for &'a AffineNielsPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the *
operator.
fn mul(self, other: &'b Fr) -> ExtendedPoint
[src]
impl<'b> Mul<&'b Fr> for AffineNielsPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the *
operator.
fn mul(self, rhs: &'b Fr) -> ExtendedPoint
[src]
impl<'a> Mul<Fr> for &'a AffineNielsPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the *
operator.
fn mul(self, rhs: Fr) -> ExtendedPoint
[src]
impl Mul<Fr> for AffineNielsPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the *
operator.
fn mul(self, rhs: Fr) -> ExtendedPoint
[src]
impl AddAssign<AffineNielsPoint> for ExtendedPoint
[src]
fn add_assign(&mut self, rhs: AffineNielsPoint)
[src]
impl<'b> AddAssign<&'b AffineNielsPoint> for ExtendedPoint
[src]
fn add_assign(&mut self, rhs: &'b AffineNielsPoint)
[src]
impl SubAssign<AffineNielsPoint> for ExtendedPoint
[src]
fn sub_assign(&mut self, rhs: AffineNielsPoint)
[src]
impl<'b> SubAssign<&'b AffineNielsPoint> for ExtendedPoint
[src]
fn sub_assign(&mut self, rhs: &'b AffineNielsPoint)
[src]
impl Debug for AffineNielsPoint
[src]
impl Copy for AffineNielsPoint
[src]
impl Clone for AffineNielsPoint
[src]
fn clone(&self) -> AffineNielsPoint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl ConditionallySelectable for AffineNielsPoint
[src]
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
[src]
fn conditional_assign(&mut self, other: &Self, choice: Choice)
[src]
Conditionally assign other
to self
, according to choice
. Read more
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
[src]
Conditionally swap self
and other
if choice == 1
; otherwise, reassign both unto themselves. Read more
Auto Trait Implementations
impl Send for AffineNielsPoint
impl Sync for AffineNielsPoint
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,