Trait UncompressedEncoding

Source
pub trait UncompressedEncoding
where Self: Sized,
{ type Bytes: ByteArray; // Required method fn to_bytes_uncompressed(&self) -> Self::Bytes; }
Expand description

Uncompressed encoding of the point

Required Associated Types§

Source

type Bytes: ByteArray

Byte array that fits the whole uncompressed point representation

Required Methods§

Source

fn to_bytes_uncompressed(&self) -> Self::Bytes

Encodes the point as bytes in uncompressed form

Some curves may not have such thing as compressed and uncompressed forms. For these curves, we CompressedEncoding and UncompressedEncoding should return the same encoding.

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§