Trait elliptic_curve::sec1::ToEncodedPoint
source · [−]pub trait ToEncodedPoint<C> where
C: Curve,
FieldSize<C>: ModulusSize, {
fn to_encoded_point(&self, compress: bool) -> EncodedPoint<C>;
}
Expand description
Trait for serializing a value to a SEC1 encoded curve point.
This is intended for use with the AffinePoint
type for a given elliptic curve.
Required methods
fn to_encoded_point(&self, compress: bool) -> EncodedPoint<C>
fn to_encoded_point(&self, compress: bool) -> EncodedPoint<C>
Serialize this value as a SEC1 EncodedPoint
, optionally applying
point compression.
Implementors
impl<C> ToEncodedPoint<C> for PublicKey<C> where
C: Curve + ProjectiveArithmetic,
AffinePoint<C>: FromEncodedPoint<C> + ToEncodedPoint<C>,
FieldSize<C>: ModulusSize,
This is supported on crate feature
sec1
only.