Module external

Source
Expand description

The external Bitcoin-based protocol. Network protocol types and serialization for the Zcash wire format.

Re-exportsยง

pub use addr::canonical_peer_addr;
pub use addr::canonical_socket_addr;
pub use addr::AddrInVersion;
pub use codec::Codec;
pub use inv::InventoryHash;
pub use inv::MAX_TX_INV_IN_SENT_MESSAGE;
pub use message::Message;
pub use message::VersionMessage;
pub use types::Nonce;
pub use types::Version;

Modulesยง

addr ๐Ÿ”’
Node address wire formats. Zcash node address types and serialization for Zcash network messages.
arbitrary
Randomised test data generation for external protocol types.
codec
A Tokio codec that transforms an AsyncRead into a Stream of Messages. A Tokio codec mapping byte streams to Bitcoin message streams.
inv ๐Ÿ”’
Inventory items. Inventory items for the Zcash network protocol.
message ๐Ÿ”’
An enum of all supported Bitcoin message types. Definitions of network messages.
types
Newtype wrappers for primitive types.

Constantsยง

MAX_PROTOCOL_MESSAGE_LEN
The maximum length of a Zcash message, in bytes.