Trait ethers::core::k256::elliptic_curve::sec1::FromEncodedPoint[][src]

pub trait FromEncodedPoint<C> where
    C: Curve,
    <<<C as Curve>::UInt as ArrayEncoding>::ByteSize as Add<<<C as Curve>::UInt as ArrayEncoding>::ByteSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::UInt as ArrayEncoding>::ByteSize as Add<<<C as Curve>::UInt as ArrayEncoding>::ByteSize>>::Output: ArrayLength<u8>,
    <<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as Add<<<C as Curve>::UInt as ArrayEncoding>::ByteSize>>::Output as Add<UInt<UTerm, B1>>>::Output: 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

Deserialize the type this trait is impl’d on from an EncodedPoint.

Returns

None if the EncodedPoint is invalid.

Implementors