Struct test_dalek_docs::backend::serial::curve_models::ProjectiveNielsPoint
source · pub struct ProjectiveNielsPoint {
pub Y_plus_X: FieldElement51,
pub Y_minus_X: FieldElement51,
pub Z: FieldElement51,
pub T2d: FieldElement51,
}
Expand description
A pre-computed point on the \( \mathbb P^3 \) model for the curve, represented as \((Y+X, Y-X, Z, 2dXY)\) in “Niels coordinates”.
More details on the relationships between the different curve models can be found in the module-level documentation.
Fields
Y_plus_X: FieldElement51
Y_minus_X: FieldElement51
Z: FieldElement51
T2d: FieldElement51
Trait Implementations
sourceimpl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
type Output = CompletedPoint
type Output = CompletedPoint
The resulting type after applying the
+
operator.sourcefn add(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
fn add(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
Performs the
+
operation. Read moresourceimpl Clone for ProjectiveNielsPoint
impl Clone for ProjectiveNielsPoint
sourcefn clone(&self) -> ProjectiveNielsPoint
fn clone(&self) -> ProjectiveNielsPoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl ConditionallySelectable for ProjectiveNielsPoint
impl ConditionallySelectable for ProjectiveNielsPoint
sourcefn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
sourcefn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
sourceimpl Debug for ProjectiveNielsPoint
impl Debug for ProjectiveNielsPoint
sourceimpl Default for ProjectiveNielsPoint
impl Default for ProjectiveNielsPoint
sourcefn default() -> ProjectiveNielsPoint
fn default() -> ProjectiveNielsPoint
Returns the “default value” for a type. Read more
sourceimpl Identity for ProjectiveNielsPoint
impl Identity for ProjectiveNielsPoint
sourcefn identity() -> ProjectiveNielsPoint
fn identity() -> ProjectiveNielsPoint
Returns the identity element of the curve.
Can be used as a constructor. Read more
sourceimpl<'a> Neg for &'a ProjectiveNielsPoint
impl<'a> Neg for &'a ProjectiveNielsPoint
type Output = ProjectiveNielsPoint
type Output = ProjectiveNielsPoint
The resulting type after applying the
-
operator.sourcefn neg(self) -> ProjectiveNielsPoint
fn neg(self) -> ProjectiveNielsPoint
Performs the unary
-
operation. Read moresourceimpl<'a, 'b> Sub<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Sub<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
type Output = CompletedPoint
type Output = CompletedPoint
The resulting type after applying the
-
operator.sourcefn sub(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
fn sub(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
Performs the
-
operation. Read moresourceimpl Zeroize for ProjectiveNielsPoint
impl Zeroize for ProjectiveNielsPoint
impl Copy for ProjectiveNielsPoint
Auto Trait Implementations
impl RefUnwindSafe for ProjectiveNielsPoint
impl Send for ProjectiveNielsPoint
impl Sync for ProjectiveNielsPoint
impl Unpin for ProjectiveNielsPoint
impl UnwindSafe for ProjectiveNielsPoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more