Trait cry::primitive::bytes::Bytes[][src]

pub trait Bytes: Sized {
    type OutputSize: ArrayLength<u8>;
    fn from_bytes(data: Output<Self>) -> Self;
fn to_bytes(&self) -> Output<Self>; }

Convert data format between bytes and struct.

Associated Types

type OutputSize: ArrayLength<u8>[src]

Loading content...

Required methods

fn from_bytes(data: Output<Self>) -> Self[src]

fn to_bytes(&self) -> Output<Self>[src]

Loading content...

Implementors

impl Bytes for cry::ristretto255::Point[src]

type OutputSize = U32

impl Bytes for cry::ristretto255::Scalar[src]

type OutputSize = U32

impl<P: DisLogPoint> Bytes for cry::primitive::point::Point<P>[src]

type OutputSize = P::OutputSize

impl<S: ScalarNumber> Bytes for cry::primitive::scalar::Scalar<S>[src]

type OutputSize = S::OutputSize

Loading content...