BeBytes

Trait BeBytes 

Source
pub trait BeBytes: Sized {
    // Required methods
    fn to_be_bytes(&self) -> Vec<u8> ;
    fn from_be_bytes(bytes: &[u8]) -> Option<Self>;
}

Required Methods§

Source

fn to_be_bytes(&self) -> Vec<u8>

Source

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

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.

Implementations on Foreign Types§

Source§

impl BeBytes for Scalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for Scalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for Scalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for SigningKey

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for Scalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for SigningKey

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for Scalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for Scalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for WrappedScalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for Fr

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for Scalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for SigningKey

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for NonZeroScalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for SigningKey

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for NonZeroScalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for SigningKey

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for NonZeroScalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl BeBytes for Scalar

Source§

fn to_be_bytes(&self) -> Vec<u8>

Source§

fn from_be_bytes(bytes: &[u8]) -> Option<Self>

Implementors§