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 data to a buffer.
Writes the data 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.
Writes an account private key to a buffer.
Writes an account signature to a buffer.
Writes an account graph key to a buffer.
Writes an account view key to a buffer.
Writes an account compute key to a buffer.