Trait yubihsm::ecdsa::sec1::ToEncodedPoint
pub trait ToEncodedPoint<C>where
C: Curve,
<C as Curve>::FieldBytesSize: ModulusSize,{
// Required method
fn to_encoded_point(
&self,
compress: bool
) -> EncodedPoint<<C as Curve>::FieldBytesSize>;
}
Available on crate feature
sec1
only.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 as Curve>::FieldBytesSize>
fn to_encoded_point( &self, compress: bool ) -> EncodedPoint<<C as Curve>::FieldBytesSize>
Serialize this value as a SEC1 EncodedPoint
, optionally applying
point compression.