[][src]Struct k256::ProjectivePoint

pub struct ProjectivePoint { /* fields omitted */ }
This is supported on crate 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) -> 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 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<'_> AddAssign<&'_ AffinePoint> for ProjectivePoint[src]

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 Curve for ProjectivePoint[src]

type AffineRepr = AffinePoint

The affine representation for this elliptic curve.

impl Debug for ProjectivePoint[src]

impl Default for ProjectivePoint[src]

impl Eq for ProjectivePoint[src]

impl From<AffinePoint> for ProjectivePoint[src]

impl FromEncodedPoint<Secp256k1> for ProjectivePoint[src]

impl Group for ProjectivePoint[src]

type Scalar = Scalar

Scalars modulo the order of this group's scalar field.

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 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 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<'_> SubAssign<&'_ AffinePoint> for ProjectivePoint[src]

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

impl SubAssign<AffinePoint> for ProjectivePoint[src]

impl SubAssign<ProjectivePoint> for ProjectivePoint[src]

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

impl Sum<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> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, Rhs, Output> GroupOps<Rhs, Output> for T where
    T: Add<Rhs, Output = Output> + Sub<Rhs, Output = Output> + AddAssign<Rhs> + SubAssign<Rhs>, 

impl<T, Rhs, Output> GroupOpsOwned<Rhs, Output> for T where
    T: for<'r> GroupOps<&'r Rhs, Output>, 

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, Rhs, Output> ScalarMul<Rhs, Output> for T where
    T: Mul<Rhs, Output = Output> + MulAssign<Rhs>, 

impl<T, Rhs, Output> ScalarMulOwned<Rhs, Output> for T where
    T: for<'r> ScalarMul<&'r Rhs, Output>, 

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

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.