Trait GenericCompressedEncodable

Source
pub trait GenericCompressedEncodable<const N: usize>: GenericCurveAffine {
    // Required methods
    fn into_compressed(&self) -> (EncodingBytes<Self, N>, bool);
    fn from_compressed(
        encoding: EncodingBytes<Self, N>,
        parity: bool,
    ) -> Result<Self, GroupDecodingError>;
}

Required Methods§

Source

fn into_compressed(&self) -> (EncodingBytes<Self, N>, bool)

Converts this element into its uncompressed encoding, so long as it’s not the point at infinity.

Source

fn from_compressed( encoding: EncodingBytes<Self, N>, parity: bool, ) -> Result<Self, GroupDecodingError>

Converts an uncompressed encoding into the 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§