Struct ethers::core::k256::AffinePoint [−][src]
pub struct AffinePoint { /* fields omitted */ }
Expand description
A point on the secp256k1 curve in affine coordinates.
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
Determine if two items are equal. Read more
pub fn decompress(
x_bytes: &GenericArray<u8, <<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>,
y_is_odd: Choice
) -> CtOption<AffinePoint>
pub fn decompress(
x_bytes: &GenericArray<u8, <<Secp256k1 as Curve>::UInt as ArrayEncoding>::ByteSize>,
y_is_odd: Choice
) -> CtOption<AffinePoint>
Attempt to decompress an elliptic curve point.
Returns the “default value” for a type. Read more
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.
The encoding of group elements. Read more
Attempts to deserialize a group element from its encoding.
pub fn from_bytes_unchecked(
bytes: &<AffinePoint as GroupEncoding>::Repr
) -> CtOption<AffinePoint>
pub fn from_bytes_unchecked(
bytes: &<AffinePoint as GroupEncoding>::Repr
) -> CtOption<AffinePoint>
Attempts to deserialize a group element, not checking if the element is valid. Read more
Converts this element into its byte encoding. This may or may not support encoding the identity. 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 = AffinePoint
type Output = AffinePoint
The resulting type after applying the -
operator.
Returns the identity of the group: the point at infinity.
Returns the base point of SECP256k1.
Is this point the identity point?
Convert to curve representation.
type Curve = ProjectivePoint
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
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
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more