[−][src]Struct k256::ProjectivePoint
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.
fn add(self, other: &AffinePoint) -> ProjectivePoint
[src]
impl<'_> Add<&'_ AffinePoint> for ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the +
operator.
fn add(self, other: &AffinePoint) -> ProjectivePoint
[src]
impl<'_, '_> Add<&'_ ProjectivePoint> for &'_ ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the +
operator.
fn add(self, other: &ProjectivePoint) -> ProjectivePoint
[src]
impl<'_> Add<&'_ ProjectivePoint> for ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the +
operator.
fn add(self, other: &ProjectivePoint) -> ProjectivePoint
[src]
impl<'_> AddAssign<&'_ ProjectivePoint> for ProjectivePoint
[src]
fn add_assign(&mut self, rhs: &ProjectivePoint)
[src]
impl AddAssign<AffinePoint> for ProjectivePoint
[src]
fn add_assign(&mut self, rhs: AffinePoint)
[src]
impl AddAssign<ProjectivePoint> for ProjectivePoint
[src]
fn add_assign(&mut self, rhs: ProjectivePoint)
[src]
impl Clone for ProjectivePoint
[src]
fn clone(&self) -> ProjectivePoint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ConditionallySelectable for ProjectivePoint
[src]
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
[src]
fn conditional_assign(&mut self, other: &Self, choice: Choice)
[src]
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
[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]
fn from(p: AffinePoint) -> Self
[src]
impl<'_, '_> Mul<&'_ Scalar> for &'_ ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the *
operator.
fn mul(self, other: &Scalar) -> ProjectivePoint
[src]
impl<'_> Mul<&'_ Scalar> for ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the *
operator.
fn mul(self, other: &Scalar) -> ProjectivePoint
[src]
impl<'_> MulAssign<&'_ Scalar> for ProjectivePoint
[src]
fn mul_assign(&mut self, rhs: &Scalar)
[src]
impl MulAssign<Scalar> for ProjectivePoint
[src]
fn mul_assign(&mut self, rhs: Scalar)
[src]
impl Neg for ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the -
operator.
fn neg(self) -> ProjectivePoint
[src]
impl<'a> Neg for &'a ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the -
operator.
fn neg(self) -> ProjectivePoint
[src]
impl PartialEq<ProjectivePoint> for ProjectivePoint
[src]
impl<'_, '_> Sub<&'_ AffinePoint> for &'_ ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the -
operator.
fn sub(self, other: &AffinePoint) -> ProjectivePoint
[src]
impl<'_> Sub<&'_ AffinePoint> for ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the -
operator.
fn sub(self, other: &AffinePoint) -> ProjectivePoint
[src]
impl<'_, '_> Sub<&'_ ProjectivePoint> for &'_ ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the -
operator.
fn sub(self, other: &ProjectivePoint) -> ProjectivePoint
[src]
impl<'_> Sub<&'_ ProjectivePoint> for ProjectivePoint
[src]
type Output = ProjectivePoint
The resulting type after applying the -
operator.
fn sub(self, other: &ProjectivePoint) -> ProjectivePoint
[src]
impl<'_> SubAssign<&'_ ProjectivePoint> for ProjectivePoint
[src]
fn sub_assign(&mut self, rhs: &ProjectivePoint)
[src]
impl SubAssign<AffinePoint> for ProjectivePoint
[src]
fn sub_assign(&mut self, rhs: AffinePoint)
[src]
impl SubAssign<ProjectivePoint> for ProjectivePoint
[src]
fn sub_assign(&mut self, rhs: ProjectivePoint)
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProjectivePoint
impl Send for ProjectivePoint
impl Sync for ProjectivePoint
impl Unpin for ProjectivePoint
impl UnwindSafe for ProjectivePoint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
[src]
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
fn conditional_negate(&mut self, choice: Choice)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,