Enum ethers::core::k256::elliptic_curve::sec1::Coordinates [−][src]
pub enum Coordinates<'a, C> where
C: Curve, {
Identity,
Compact {
x: &'a GenericArray<u8, <<C as Curve>::UInt as ArrayEncoding>::ByteSize>,
},
Compressed {
x: &'a GenericArray<u8, <<C as Curve>::UInt as ArrayEncoding>::ByteSize>,
y_is_odd: bool,
},
Uncompressed {
x: &'a GenericArray<u8, <<C as Curve>::UInt as ArrayEncoding>::ByteSize>,
y: &'a GenericArray<u8, <<C as Curve>::UInt as ArrayEncoding>::ByteSize>,
},
}
Expand description
Enum representing the coordinates of either compressed or uncompressed SEC1-encoded elliptic curve points.
Variants
Identity
Identity point (a.k.a. point at infinity)
Compact
Fields
x: &'a GenericArray<u8, <<C as Curve>::UInt as ArrayEncoding>::ByteSize>
x-coordinate
Compact curve point
Compressed
Fields
x: &'a GenericArray<u8, <<C as Curve>::UInt as ArrayEncoding>::ByteSize>
x-coordinate
y_is_odd: bool
Is the y-coordinate odd?
Compressed curve point
Uncompressed
Fields
x: &'a GenericArray<u8, <<C as Curve>::UInt as ArrayEncoding>::ByteSize>
x-coordinate
y: &'a GenericArray<u8, <<C as Curve>::UInt as ArrayEncoding>::ByteSize>
y-coordinate
Uncompressed curve point
Implementations
Get the tag octet needed to encode this set of Coordinates
Trait Implementations
impl<'a, C> PartialEq<Coordinates<'a, C>> for Coordinates<'a, C> where
C: PartialEq<C> + Curve,
impl<'a, C> PartialEq<Coordinates<'a, C>> for Coordinates<'a, C> where
C: PartialEq<C> + Curve,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for Coordinates<'a, C> where
<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<'a, C> Send for Coordinates<'a, C>
impl<'a, C> Sync for Coordinates<'a, C>
impl<'a, C> Unpin for Coordinates<'a, C>
impl<'a, C> UnwindSafe for Coordinates<'a, C> where
<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
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