elliptic_curve::point

Trait DecompressPoint

Source
pub trait DecompressPoint<C: Curve>: Sized {
    // Required method
    fn decompress(x: &FieldBytes<C>, 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§

Source

fn decompress(x: &FieldBytes<C>, 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.

Implementors§