pub trait GenericCompressedEncodable<const N: usize>: GenericCurveAffine {
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