[−][src]Trait elliptic_curve::sec1::ToEncodedPoint
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
pub fn to_encoded_point(&self, compress: bool) -> EncodedPoint<C>
[src]
Serialize this value as a SEC1 EncodedPoint
, optionally applying
point compression.
Implementors
impl<C> ToEncodedPoint<C> for PublicKey<C> where
C: Curve + ProjectiveArithmetic,
FieldBytes<C>: From<Scalar<C>> + for<'r> From<&'r Scalar<C>>,
Scalar<C>: PrimeField<Repr = FieldBytes<C>>,
AffinePoint<C>: Copy + Clone + Debug + Default + FromEncodedPoint<C> + ToEncodedPoint<C>,
ProjectivePoint<C>: From<AffinePoint<C>>,
UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
UncompressedPointSize<C>: ArrayLength<u8>,
[src]
C: Curve + ProjectiveArithmetic,
FieldBytes<C>: From<Scalar<C>> + for<'r> From<&'r Scalar<C>>,
Scalar<C>: PrimeField<Repr = FieldBytes<C>>,
AffinePoint<C>: Copy + Clone + Debug + Default + FromEncodedPoint<C> + ToEncodedPoint<C>,
ProjectivePoint<C>: From<AffinePoint<C>>,
UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
UncompressedPointSize<C>: ArrayLength<u8>,
This is supported on crate feature
arithmetic
only.pub fn to_encoded_point(&self, compress: bool) -> EncodedPoint<C>
[src]
Serialize this PublicKey
as a SEC1 EncodedPoint
, optionally applying
point compression