Struct curve25519_dalek::curve::ProjectivePoint
[−]
[src]
pub struct ProjectivePoint { /* fields omitted */ }
A ProjectivePoint
is a point on the curve in 𝗣²(𝔽ₚ).
A point (x,y) in the affine model corresponds to (x:y:1).
Methods
impl ProjectivePoint
[src]
fn compress_edwards(&self) -> CompressedEdwardsY
Convert this point to a CompressedEdwardsY
fn compress_montgomery(&self) -> Option<CompressedMontgomeryU>
Convert this point to a CompressedMontgomeryU
.
Note that this discards the sign.
Return
None
ifself
is the identity point;Some(CompressedMontgomeryU)
otherwise.
impl ProjectivePoint
[src]
fn double(&self) -> CompletedPoint
Double this point: return self + self
Trait Implementations
impl Copy for ProjectivePoint
[src]
impl Clone for ProjectivePoint
[src]
fn clone(&self) -> ProjectivePoint
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Identity for ProjectivePoint
[src]
fn identity() -> ProjectivePoint
Returns the identity element of the curve. Can be used as a constructor. Read more