pub trait ToBytes {
    fn write_le<W>(&self, writer: W) -> Result<(), Error>
    where
        W: Write,
        Self: Sized
; fn to_bytes_le(&self) -> Result<Vec<u8, Global>, Error>
    where
        Self: Sized
, { ... } }

Required Methods

Writes self into writer as little-endian bytes.

Provided Methods

Returns self as a byte array in little-endian order.

Implementations on Foreign Types

Writes the field to a buffer.

Writes the boolean to a buffer.

Writes the group to a buffer.

Writes the scalar to a buffer.

Writes the integer to a buffer.

Writes the powers to the buffer.

Writes the powers to the buffer.

Writes the Merkle path to a buffer.

Implementors