| Crates.io | ant-protocol |
| lib.rs | ant-protocol |
| version | 1.0.8 |
| created_at | 2024-12-18 13:32:06.935607+00 |
| updated_at | 2025-09-03 17:02:38.879128+00 |
| description | Defines the network protocol for Autonomi |
| homepage | https://maidsafe.net |
| repository | https://github.com/maidsafe/autonomi |
| max_upload_size | |
| id | 1487548 |
| size | 258,725 |
The ant_protocol directory contains the core protocol logic for the Autonomi Network. It includes various modules that handle different aspects of the protocol, such as error handling, messages, and storage.
The error.rs file contains the definitions for various errors that can occur within the protocol.
ChunkNotFound(ChunkAddress): Indicates that a chunk was not found.
Result::Err(Error::ChunkNotFound(chunk_address))ChunkNotStored(XorName): Indicates that a chunk was not stored.
Result::Err(Error::ChunkNotStored(xor_name))The messages module contains different types of messages that can be sent or received within the protocol.
Cmd::ReplicateNetworkAddress from the holder.holder: NetworkAddress: Holder of the replication keys.keys: Vec<NetworkAddress>: Keys of the copy that shall be replicated.Query::GetStoreCostaddress: NetworkAddress: The address where the record will be stored.QueryResponse::GetStoreCoststore_cost: Result<Token>: The cost of storing the record.payment_address: PublicAddress: The address to pay the store cost to.CmdResponse::ReplicateResult<()>: The result of the replication command.The storage module handles the storage aspects of the protocol.
ChunkAddress: Address of a chunk in the network.GraphEntryAddress: Address of a Transaction in the network.Header: Header information for storage items.The antnode_proto directory contains the Protocol Buffers definitions for the Autonomi Network.
req_resp_types.proto: Definitions for request and response types.antnode.proto: Main Protocol Buffers definitions for the Autonomi Network.