Crate monero_io

Source
Expand description

§Monero IO

Serialization functions, as within the Monero protocol.

This library is usable under no-std when the std feature (on by default) is disabled.

§Cargo Features

  • std (on by default): Enables std (and with it, more efficient internal implementations).

Functions§

decompress_point
Decompress a canonically-encoded Ed25519 point.
read_array
Read a constant-length list of elements.
read_byte
Read a single byte.
read_bytes
Read a constant amount of bytes.
read_point
Read a canonically-encoded Ed25519 point.
read_raw_vec
Read a variable-length list of elements, without length-prefixing.
read_scalar
Read a canonically-encoded scalar.
read_torsion_free_point
Read a canonically-encoded Ed25519 point, within the prime-order subgroup.
read_u16
Read a u16, little-endian encoded.
read_u32
Read a u32, little-endian encoded.
read_u64
Read a u64, little-endian encoded.
read_varint
Read a canonically-encoded VarInt.
read_vec
Read a length-prefixed variable-length list of elements.
varint_len
The amount of bytes this number will take when serialized as a VarInt.
write_byte
Write a byte.
write_point
Write a point.
write_raw_vec
Write a list of elements, without length-prefixing.
write_scalar
Write a scalar.
write_varint
Write a number, VarInt-encoded.
write_vec
Write a list of elements, with length-prefixing.