Struct k256::AffinePoint
source · [−]pub struct AffinePoint { /* private fields */ }
arithmetic
only.Expand description
secp256k1 curve point expressed in affine coordinates.
serde
support
When the serde
feature of this crate is enabled, the Serialize
and
Deserialize
traits are impl’d for this type.
The serialization uses the SEC1 Elliptic-Curve-Point-to-Octet-String
encoding, serialized as binary.
When serialized with a text-based format, the SEC1 representation is subsequently hex encoded.
Implementations
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
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Get the affine x-coordinate as a serialized field element.
Determine if two items are equal. Read more
Attempt to decompress an elliptic curve point.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Returns the SEC1 compressed encoding of this point.
Performs the conversion.
Performs the conversion.
Attempts to parse the given EncodedPoint
as an SEC1-encoded AffinePoint
.
Returns
None
value if encoded_point
is not on the secp256k1 curve.
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
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
Serialize this value as a SEC1 EncodedPoint
, optionally applying
point compression. Read more
impl TryFrom<&'_ EncodedPoint<<<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>> for AffinePoint
impl TryFrom<&'_ EncodedPoint<<<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>> for AffinePoint
Performs the conversion.
impl TryFrom<EncodedPoint<<<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>> for AffinePoint
impl TryFrom<EncodedPoint<<<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>> for AffinePoint
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AffinePoint
impl Send for AffinePoint
impl Sync for AffinePoint
impl Unpin for AffinePoint
impl UnwindSafe for AffinePoint
Blanket Implementations
Mutably borrows from an owned value. Read more