zebra_network/protocol/external.rs
1//! Network protocol types and serialization for the Zcash wire format.
2
3/// Node address wire formats.
4mod addr;
5/// A Tokio codec that transforms an `AsyncRead` into a `Stream` of `Message`s.
6pub mod codec;
7/// Provisional compact-block relay and bounded reconstruction.
8pub mod compact;
9/// Inventory items.
10mod inv;
11/// An enum of all supported Bitcoin message types.
12mod message;
13/// Newtype wrappers for primitive types.
14pub mod types;
15
16#[cfg(any(test, feature = "proptest-impl"))]
17pub mod arbitrary;
18#[cfg(test)]
19mod tests;
20
21pub use addr::{canonical_peer_addr, canonical_socket_addr, connection_limit_key, AddrInVersion};
22pub use codec::Codec;
23pub use inv::{InventoryHash, MAX_TX_INV_IN_SENT_MESSAGE};
24pub use message::{Message, VersionMessage};
25pub use types::{Nonce, Version};
26
27pub use zebra_chain::serialization::MAX_PROTOCOL_MESSAGE_LEN;