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]

Convert this point to a CompressedEdwardsY

Convert this point to a CompressedMontgomeryU. Note that this discards the sign.

Return

  • None if self is the identity point;
  • Some(CompressedMontgomeryU) otherwise.

impl ProjectivePoint
[src]

Double this point: return self + self

Trait Implementations

impl Copy for ProjectivePoint
[src]

impl Clone for ProjectivePoint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Identity for ProjectivePoint
[src]

Returns the identity element of the curve. Can be used as a constructor. Read more

impl ValidityCheck for ProjectivePoint
[src]

Checks whether the point is on the curve. Not CT.

impl Debug for ProjectivePoint
[src]

Formats the value using the given formatter.