Module message

Expand description

Bitcoin network messages.

This module defines the NetworkMessage and RawNetworkMessage types that are used for (de)serializing Bitcoin objects for transmission on the network.

Structs§

CommandString
Serializer for command string
CommandStringError
Error returned when a command string is invalid.
RawNetworkMessage
A Network message

Enums§

NetworkMessage
A Network message payload. Proper documentation is available on at Bitcoin Wiki: Protocol Specification

Constants§

MAX_INV_SIZE
The maximum number of super::message_blockdata::Inventory items in an inv message.
MAX_MSG_SIZE
Maximum size, in bytes, of an encoded message This by neccessity should be larger tham MAX_VEC_SIZE