Trait ethers::core::k256::elliptic_curve::sec1::ToCompactEncodedPoint [−][src]
pub trait ToCompactEncodedPoint<C> where
C: Curve,
<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as Add<<<C as Curve>::UInt as ArrayEncoding>::ByteSize>>::Output: Add<UInt<UTerm, B1>>,
<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as Add<<<C as Curve>::UInt as ArrayEncoding>::ByteSize>>::Output: ArrayLength<u8>,
<<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as Add<<<C as Curve>::UInt as ArrayEncoding>::ByteSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>, {
fn to_compact_encoded_point(&self) -> Option<EncodedPoint<C>>;
}
Expand description
Trait for serializing a value to a SEC1 encoded curve point with compaction.
This is intended for use with the AffinePoint
type for a given elliptic curve.
Required methods
fn to_compact_encoded_point(&self) -> Option<EncodedPoint<C>>
fn to_compact_encoded_point(&self) -> Option<EncodedPoint<C>>
Serialize this value as a SEC1 EncodedPoint
, optionally applying
point compression.