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§
Sourcefn into_compressed(&self) -> (EncodingBytes<Self, N>, bool)
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.
Sourcefn from_compressed(
encoding: EncodingBytes<Self, N>,
parity: bool,
) -> Result<Self, GroupDecodingError>
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".