[][src]Struct k256::ProjectivePoint

pub struct ProjectivePoint { /* fields omitted */ }
This is supported on feature="arithmetic" only.

A point on the secp256k1 curve in projective coordinates.

Implementations

impl ProjectivePoint[src]

pub const fn identity() -> ProjectivePoint[src]

Returns the additive identity of SECP256k1, also known as the "neutral element" or "point at infinity".

pub fn generator() -> ProjectivePoint[src]

Returns the base point of SECP256k1.

pub fn to_affine(&self) -> CtOption<AffinePoint>[src]

Returns the affine representation of this point, or None if it is the identity.

pub fn double(&self) -> ProjectivePoint[src]

Doubles this point.

pub fn endomorphism(&self) -> Self[src]

Calculates SECP256k1 endomorphism: self * lambda.

Trait Implementations

impl<'_, '_> Add<&'_ AffinePoint> for &'_ ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the + operator.

impl<'_> Add<&'_ AffinePoint> for ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the + operator.

impl<'_, '_> Add<&'_ ProjectivePoint> for &'_ ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the + operator.

impl<'_> Add<&'_ ProjectivePoint> for ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the + operator.

impl<'_> AddAssign<&'_ ProjectivePoint> for ProjectivePoint[src]

impl AddAssign<AffinePoint> for ProjectivePoint[src]

impl AddAssign<ProjectivePoint> for ProjectivePoint[src]

impl Clone for ProjectivePoint[src]

impl ConditionallySelectable for ProjectivePoint[src]

impl ConstantTimeEq for ProjectivePoint[src]

impl Copy for ProjectivePoint[src]

impl Debug for ProjectivePoint[src]

impl Default for ProjectivePoint[src]

impl From<AffinePoint> for ProjectivePoint[src]

impl<'_, '_> Mul<&'_ Scalar> for &'_ ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the * operator.

impl<'_> Mul<&'_ Scalar> for ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the * operator.

impl<'_> MulAssign<&'_ Scalar> for ProjectivePoint[src]

impl MulAssign<Scalar> for ProjectivePoint[src]

impl Neg for ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the - operator.

impl<'a> Neg for &'a ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the - operator.

impl PartialEq<ProjectivePoint> for ProjectivePoint[src]

impl<'_, '_> Sub<&'_ AffinePoint> for &'_ ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the - operator.

impl<'_> Sub<&'_ AffinePoint> for ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the - operator.

impl<'_, '_> Sub<&'_ ProjectivePoint> for &'_ ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the - operator.

impl<'_> Sub<&'_ ProjectivePoint> for ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the - operator.

impl<'_> SubAssign<&'_ ProjectivePoint> for ProjectivePoint[src]

impl SubAssign<AffinePoint> for ProjectivePoint[src]

impl SubAssign<ProjectivePoint> for ProjectivePoint[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> ConditionallyNegatable for T where
    T: ConditionallySelectable,
    &'a T: for<'a> Neg,
    <&'a T as Neg>::Output == T, 
[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.