Skip to main content

DecompressPoint

Trait DecompressPoint 

pub trait DecompressPoint<C>: Sized
where C: Curve,
{ // Required method fn decompress( x: &GenericArray<u8, <C as Curve>::FieldBytesSize>, y_is_odd: Choice, ) -> CtOption<Self>; }
Expand description

Decompress an elliptic curve point.

Point decompression recovers an original curve point from its x-coordinate and a boolean flag indicating whether or not the y-coordinate is odd.

Required Methods§

fn decompress( x: &GenericArray<u8, <C as Curve>::FieldBytesSize>, y_is_odd: Choice, ) -> CtOption<Self>

Attempt to decompress an elliptic curve point.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<C> DecompressPoint<C> for AffinePoint<C>
where C: PrimeCurveParams, GenericArray<u8, <C as Curve>::FieldBytesSize>: Copy,

§

fn decompress( x_bytes: &GenericArray<u8, <C as Curve>::FieldBytesSize>, y_is_odd: Choice, ) -> CtOption<AffinePoint<C>>

Implementors§

§

impl DecompressPoint<Secp256k1> for airbender_crypto::k256::AffinePoint