Trait elliptic_curve_flow::sec1::FromEncodedPoint [−][src]
pub trait FromEncodedPoint<C> where
Self: Sized,
C: PrimeCurve,
UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
UncompressedPointSize<C>: ArrayLength<u8>, {
fn from_encoded_point(public_key: &EncodedPoint<C>) -> Option<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(public_key: &EncodedPoint<C>) -> Option<Self>
fn from_encoded_point(public_key: &EncodedPoint<C>) -> Option<Self>
Deserialize the type this trait is impl’d on from an EncodedPoint
.
Returns
None
if the EncodedPoint
is invalid.