zksync_pairing

Trait GenericRawEncodable

Source
pub trait GenericRawEncodable<const N: usize>: GenericUncompressedEncodable<N> {
    // Required methods
    fn into_raw_uncompressed_le(&self) -> [u8; N];
    fn from_raw_uncompressed_le_unchecked(
        encoded: &[u8; N],
        infinity: bool,
    ) -> Result<Self, GroupDecodingError>;
    fn from_raw_uncompressed_le(
        encoded: &[u8; N],
        infinity: bool,
    ) -> Result<Self, GroupDecodingError>;
}

Required Methods§

Source

fn into_raw_uncompressed_le(&self) -> [u8; N]

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

Source

fn from_raw_uncompressed_le_unchecked( encoded: &[u8; N], infinity: bool, ) -> Result<Self, GroupDecodingError>

Creates a point from raw encoded coordinates without checking on curve

Source

fn from_raw_uncompressed_le( encoded: &[u8; N], infinity: bool, ) -> Result<Self, GroupDecodingError>

Creates a point from raw encoded coordinates

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§