Expand description

A very simple serialization framework which is used to serialize/deserialize messages as well as ChannelsManagers and ChannelMonitors.

Structs

Lightning TLV uses a custom variable-length integer called BigSize. It is similar to Bitcoin’s variable-length integers except that it is serialized in big-endian instead of little-endian.

Represents a hostname for serialization purposes. Only the character set and length will be validated. The character set consists of ASCII alphanumeric characters, hyphens, and periods. Its length is guaranteed to be representable by a single byte. This serialization is used by BOLT 7 hostnames.

Constants

serialization buffer size

Traits

A trait that various rust-lightning types implement allowing them to (maybe) be read in from a Read

A trait that various rust-lightning types implement allowing them to be read in from a Read

A trait that various higher-level rust-lightning types implement allowing them to be read in from a Read given some additional set of arguments which is required to deserialize.

A trait that various rust-lightning types implement allowing them to be written out to a Writer

A simplified version of std::io::Write that exists largely for backwards compatibility. An impl is provided for any type that also impls std::io::Write.