Skip to main content

Module external

Module external 

Source
Expand description

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

Re-exports§

pub use codec::Codec;
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.

Structs§

AddrInVersion
The format used for Bitcoin node addresses in version messages. Contains a node address and services, without a last-seen time.
VersionMessage
A version message.

Enums§

InventoryHash
An inventory hash which refers to some advertised or requested data.
Message
A Bitcoin-like network message for the Zcash protocol.

Constants§

MAX_PROTOCOL_MESSAGE_LEN
The maximum length of a Zcash message, in bytes.
MAX_TX_INV_IN_SENT_MESSAGE
The maximum number of transaction inventory items in a network message received from a peer.

Functions§

canonical_peer_addr
Transform a PeerSocketAddr into a canonical Zebra PeerSocketAddr, converting IPv6-mapped IPv4 addresses, and removing IPv6 scope IDs and flow information.
canonical_socket_addr
Transform a SocketAddr into a canonical Zebra SocketAddr, converting IPv6-mapped IPv4 addresses, and removing IPv6 scope IDs and flow information.