Trait elliptic_curve::sec1::ToCompactEncodedPoint
source · pub trait ToCompactEncodedPoint<C>where
C: Curve,
FieldBytesSize<C>: ModulusSize,{
// Required method
fn to_compact_encoded_point(&self) -> CtOption<EncodedPoint<C>>;
}
Available on crate feature
sec1
only.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) -> CtOption<EncodedPoint<C>>
fn to_compact_encoded_point(&self) -> CtOption<EncodedPoint<C>>
Serialize this value as a SEC1 EncodedPoint
, optionally applying
point compression.