[][src]Struct dusk_jubjub::AffineNielsPoint

pub struct AffineNielsPoint { /* fields omitted */ }

This is a pre-processed version of an affine point (x, y) in the form (y + x, y - x, x * y * 2d). This can be added to an JubJubExtended.

Implementations

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]) -> JubJubExtended[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 JubJubExtended[src]

type Output = JubJubExtended

The resulting type after applying the + operator.

impl<'b> Add<&'b AffineNielsPoint> for JubJubExtended[src]

type Output = JubJubExtended

The resulting type after applying the + operator.

impl<'a> Add<AffineNielsPoint> for &'a JubJubExtended[src]

type Output = JubJubExtended

The resulting type after applying the + operator.

impl Add<AffineNielsPoint> for JubJubExtended[src]

type Output = JubJubExtended

The resulting type after applying the + operator.

impl<'b> AddAssign<&'b AffineNielsPoint> for JubJubExtended[src]

impl AddAssign<AffineNielsPoint> for JubJubExtended[src]

impl Clone for AffineNielsPoint[src]

impl ConditionallySelectable for AffineNielsPoint[src]

impl Copy for AffineNielsPoint[src]

impl Debug for AffineNielsPoint[src]

impl<'a, 'b> Mul<&'b Fr> for &'a AffineNielsPoint[src]

type Output = JubJubExtended

The resulting type after applying the * operator.

impl<'b> Mul<&'b Fr> for AffineNielsPoint[src]

type Output = JubJubExtended

The resulting type after applying the * operator.

impl<'a> Mul<Fr> for &'a AffineNielsPoint[src]

type Output = JubJubExtended

The resulting type after applying the * operator.

impl Mul<Fr> for AffineNielsPoint[src]

type Output = JubJubExtended

The resulting type after applying the * operator.

impl<'a, 'b> Sub<&'b AffineNielsPoint> for &'a JubJubExtended[src]

type Output = JubJubExtended

The resulting type after applying the - operator.

impl<'b> Sub<&'b AffineNielsPoint> for JubJubExtended[src]

type Output = JubJubExtended

The resulting type after applying the - operator.

impl<'a> Sub<AffineNielsPoint> for &'a JubJubExtended[src]

type Output = JubJubExtended

The resulting type after applying the - operator.

impl Sub<AffineNielsPoint> for JubJubExtended[src]

type Output = JubJubExtended

The resulting type after applying the - operator.

impl<'b> SubAssign<&'b AffineNielsPoint> for JubJubExtended[src]

impl SubAssign<AffineNielsPoint> for JubJubExtended[src]

Auto Trait Implementations

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.