Expand description
The external Bitcoin-based protocol. Network protocol types and serialization for the Zcash wire format.
Re-exports§
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
AsyncReadinto aStreamofMessages. 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§
- Addr
InVersion - The format used for Bitcoin node addresses in
versionmessages. Contains a node address and services, without a last-seen time. - Version
Message - A
versionmessage.
Enums§
- Inventory
Hash - 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
PeerSocketAddrinto a canonical ZebraPeerSocketAddr, converting IPv6-mapped IPv4 addresses, and removing IPv6 scope IDs and flow information. - canonical_
socket_ addr - Transform a
SocketAddrinto a canonical ZebraSocketAddr, converting IPv6-mapped IPv4 addresses, and removing IPv6 scope IDs and flow information.