Struct curve25519_dalek::backend::serial::curve_models::CompletedPoint
source · pub struct CompletedPoint {
pub X: FieldElement2625,
pub Y: FieldElement2625,
pub Z: FieldElement2625,
pub T: FieldElement2625,
}
Expand description
A CompletedPoint
is a point \(((X:Z), (Y:T))\) on the \(\mathbb
P^1 \times \mathbb P^1 \) model of the curve.
A point (x,y) in the affine model corresponds to \( ((x:1),(y:1))
\).
More details on the relationships between the different curve models can be found in the module-level documentation.
Fields§
§X: FieldElement2625
§Y: FieldElement2625
§Z: FieldElement2625
§T: FieldElement2625
Implementations§
source§impl CompletedPoint
impl CompletedPoint
sourcepub fn as_projective(&self) -> ProjectivePoint
pub fn as_projective(&self) -> ProjectivePoint
Convert this point from the \( \mathbb P^1 \times \mathbb P^1 \) model to the \( \mathbb P^2 \) model.
This costs \(3 \mathrm M \).
sourcepub fn as_extended(&self) -> EdwardsPoint
pub fn as_extended(&self) -> EdwardsPoint
Convert this point from the \( \mathbb P^1 \times \mathbb P^1 \) model to the \( \mathbb P^3 \) model.
This costs \(4 \mathrm M \).
Trait Implementations§
source§impl Clone for CompletedPoint
impl Clone for CompletedPoint
source§fn clone(&self) -> CompletedPoint
fn clone(&self) -> CompletedPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more