Skip to main content

GenericUncompressedEncodable

Trait GenericUncompressedEncodable 

Source
pub trait GenericUncompressedEncodable<const N: usize>: GenericCurveAffine {
    // Required methods
    fn into_uncompressed(&self) -> EncodingBytes<Self, N>;
    fn from_uncompressed(
        encoding: EncodingBytes<Self, N>,
    ) -> Result<Self, GroupDecodingError>;
}

Required Methods§

Source

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

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

Source

fn from_uncompressed( encoding: EncodingBytes<Self, N>, ) -> 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".

Implementors§