pub trait ToCompactEncodedPoint<C>where
C: Curve,
UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
UncompressedPointSize<C>: ArrayLength<u8>,{
// Required method
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§
Sourcefn 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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".