Enum elliptic_curve::sec1::Coordinates
source · [−]pub enum Coordinates<'a, Size> where
Size: ModulusSize, {
Identity,
Compact {
x: &'a GenericArray<u8, Size>,
},
Compressed {
x: &'a GenericArray<u8, Size>,
y_is_odd: bool,
},
Uncompressed {
x: &'a GenericArray<u8, Size>,
y: &'a GenericArray<u8, Size>,
},
}
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, Size>
x-coordinate
Compact curve point
Compressed
Compressed curve point
Uncompressed
Uncompressed curve point
Implementations
Get the tag octet needed to encode this set of Coordinates
Trait Implementations
impl<'a, Size> PartialEq<Coordinates<'a, Size>> for Coordinates<'a, Size> where
Size: PartialEq<Size> + ModulusSize,
impl<'a, Size> PartialEq<Coordinates<'a, Size>> for Coordinates<'a, Size> where
Size: PartialEq<Size> + ModulusSize,
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, Size> RefUnwindSafe for Coordinates<'a, Size> where
<Size as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<'a, Size> Send for Coordinates<'a, Size>
impl<'a, Size> Sync for Coordinates<'a, Size>
impl<'a, Size> Unpin for Coordinates<'a, Size>
impl<'a, Size> UnwindSafe for Coordinates<'a, Size> where
<Size as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more