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,
{ ... }
}
Writes self
into writer
as little-endian bytes.
Returns self
as a byte array in little-endian order.
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.