Expand description
Wire protocol re-exports from the ant_protocol crate.
This module existed as first-party ant-node code until version 0.11.
The wire contract now lives in the ant_protocol crate so
ant-client and ant-node can evolve their release cycles
independently. Everything this module previously exported is
re-exported below verbatim, including the chunk submodule path so
downstream callers of ant_node::ant_protocol::chunk::* keep working.
Internal ant-node code can keep using crate::ant_protocol::…; the
imports resolve to the same types they always did. New code should
prefer ant_protocol::… directly.
Modules§
- chunk
- Chunk message types for the ANT protocol.
Structs§
- Chunk
GetRequest - Request to retrieve a chunk.
- Chunk
Message - Wire-format wrapper that pairs a sender-assigned
request_idwith aChunkMessageBody. - Chunk
PutRequest - Request to store a chunk.
- Chunk
Quote Request - Request a storage quote for a chunk.
- Merkle
Candidate Quote Request - Request a merkle candidate quote for batch payments.
Enums§
- Chunk
GetResponse - Response to a GET request.
- Chunk
Message Body - Enum of all chunk protocol message types.
- Chunk
PutResponse - Response to a PUT request.
- Chunk
Quote Response - Response with a storage quote.
- Merkle
Candidate Quote Response - Response with a merkle candidate quote.
- Protocol
Error - Errors that can occur during protocol operations.
Constants§
- CHUNK_
PROTOCOL_ ID - Protocol identifier for chunk operations.
- CLOSE_
GROUP_ MAJORITY - Minimum number of close group members that must agree for a decision to be valid.
- CLOSE_
GROUP_ SIZE - Number of nodes in a Kademlia close group.
- DATA_
TYPE_ CHUNK - Data type identifier for chunks.
- MAX_
CHUNK_ SIZE - Maximum chunk size in bytes (4MB).
- MAX_
WIRE_ MESSAGE_ SIZE - Maximum wire message size in bytes (5MB).
- PROOF_
TAG_ MERKLE - Version byte prefix for merkle payment proofs.
- PROOF_
TAG_ SINGLE_ NODE - Version byte prefix for payment proof serialization. Allows the verifier to detect proof type before deserialization.
- PROTOCOL_
VERSION - Current protocol version.
- XORNAME_
LEN - Byte length of an
XorName.
Type Aliases§
- XorName
- Content-addressed identifier (32 bytes).