Trait elliptic_curve::sec1::FromEncodedPoint
source · pub trait FromEncodedPoint<C>{
// Required method
fn from_encoded_point(point: &EncodedPoint<C>) -> CtOption<Self>;
}
Available on crate feature
sec1
only.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§
sourcefn 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
.
Object Safety§
This trait is not object safe.
Implementors§
impl<C> FromEncodedPoint<C> for PublicKey<C>where
C: CurveArithmetic,
AffinePoint<C>: FromEncodedPoint<C> + ToEncodedPoint<C>,
FieldBytesSize<C>: ModulusSize,
Available on crate feature
arithmetic
only.