Trait elliptic_curve::sec1::FromEncodedPoint
source · [−]pub trait FromEncodedPoint<C> where
Self: Sized,
C: Curve,
FieldSize<C>: ModulusSize, {
fn from_encoded_point(point: &EncodedPoint<C>) -> CtOption<Self>;
}
Expand description
Trait for deserializing a value from a SEC1 encoded curve point.
This is intended for use with the AffinePoint
type for a given elliptic curve.
Required methods
fn from_encoded_point(point: &EncodedPoint<C>) -> CtOption<Self>
fn from_encoded_point(point: &EncodedPoint<C>) -> CtOption<Self>
Deserialize the type this trait is impl’d on from an EncodedPoint
.
Implementors
impl<C> FromEncodedPoint<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.