Struct k256::ProjectivePoint
source · [−]pub struct ProjectivePoint { /* private fields */ }
arithmetic
only.Expand description
A point on the secp256k1 curve in projective coordinates.
Implementations
👎 Deprecated since 0.10.2: use ProjectivePoint::IDENTITY
instead
use ProjectivePoint::IDENTITY
instead
Returns the additive identity of SECP256k1, also known as the “neutral element” or “point at infinity”.
👎 Deprecated since 0.10.2: use ProjectivePoint::GENERATOR
instead
use ProjectivePoint::GENERATOR
instead
Returns the base point of SECP256k1.
Returns the affine representation of this point, or None
if it is the identity.
Doubles this point.
Calculates SECP256k1 endomorphism: self * lambda
.
Trait Implementations
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the +
operator.
Performs the +
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
type AffineRepr = AffinePoint
type AffineRepr = AffinePoint
The affine representation for this elliptic curve.
Converts this element into its affine representation.
fn batch_normalize(p: &[Self], q: &mut [Self::AffineRepr])
fn batch_normalize(p: &[Self], q: &mut [Self::AffineRepr])
Converts a batch of projective elements into affine elements. This function will
panic if p.len() != q.len()
. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Deserialize the type this trait is impl’d on from an EncodedPoint
.
Returns an element chosen uniformly at random from the non-identity elements of this group. Read more
Determines if this point is the identity.
type Repr = CompressedPoint
type Repr = CompressedPoint
The encoding of group elements. Read more
Attempts to deserialize a group element from its encoding.
Attempts to deserialize a group element, not checking if the element is valid. Read more
fn lincomb(
x: &ProjectivePoint,
k: &Scalar,
y: &ProjectivePoint,
l: &Scalar
) -> ProjectivePoint
fn lincomb(
x: &ProjectivePoint,
k: &Scalar,
y: &ProjectivePoint,
l: &Scalar
) -> ProjectivePoint
Calculates x * k + y * l
.
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the *
operator.
Performs the *
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the -
operator.
Performs the unary -
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the -
operator.
Performs the unary -
operation. Read more
type Affine = AffinePoint
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = ProjectivePoint
type Output = ProjectivePoint
The resulting type after applying the -
operator.
Performs the -
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Method which takes an iterator and generates Self
from the elements by
“summing up” the items. Read more
Serialize this value as a SEC1 EncodedPoint
, optionally applying
point compression. Read more
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
Mutably borrows from an owned value. Read more
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
Negate self
if choice == Choice(1)
; otherwise, leave it
unchanged. Read more