[][src]Struct k256::AffinePoint

pub struct AffinePoint { /* fields omitted */ }
This is supported on crate feature arithmetic only.

A point on the secp256k1 curve in affine coordinates.

Implementations

impl AffinePoint[src]

pub fn generator() -> AffinePoint[src]

Returns the base point of SECP256k1.

pub fn identity() -> AffinePoint[src]

Returns the identity of the group: the point at infinity.

pub fn is_identity(&self) -> Choice[src]

Is this point the identity point?

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

type Output = ProjectivePoint

The resulting type after applying the + operator.

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

impl AddAssign<AffinePoint> for ProjectivePoint[src]

impl Clone for AffinePoint[src]

impl ConditionallySelectable for AffinePoint[src]

impl ConstantTimeEq for AffinePoint[src]

impl Copy for AffinePoint[src]

impl Debug for AffinePoint[src]

impl Decompress<Secp256k1> for AffinePoint[src]

impl Default for AffinePoint[src]

impl Eq for AffinePoint[src]

impl<'_> From<&'_ AffinePoint> for VerifyKey[src]

impl From<AffinePoint> for EncodedPoint[src]

fn from(affine_point: AffinePoint) -> EncodedPoint[src]

Returns the SEC1 compressed encoding of this point.

impl From<AffinePoint> for ProjectivePoint[src]

impl FromEncodedPoint<Secp256k1> for AffinePoint[src]

fn from_encoded_point(encoded_point: &EncodedPoint) -> CtOption<Self>[src]

Attempts to parse the given EncodedPoint as an SEC1-encoded AffinePoint.

Returns

None value if encoded_point is not on the secp256k1 curve.

impl Mul<NonZeroScalar<Secp256k1>> for AffinePoint[src]

type Output = AffinePoint

The resulting type after applying the * operator.

impl Neg for AffinePoint[src]

type Output = AffinePoint

The resulting type after applying the - operator.

impl PartialEq<AffinePoint> for AffinePoint[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<AffinePoint> for ProjectivePoint[src]

type Output = ProjectivePoint

The resulting type after applying the - operator.

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

impl SubAssign<AffinePoint> for ProjectivePoint[src]

impl ToEncodedPoint<Secp256k1> for AffinePoint[src]

impl VerifyPrimitive<Secp256k1> for AffinePoint[src]

impl Zeroize for AffinePoint[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> Conv for T

impl<T> FmtForward for T

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

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> 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.

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]