Expand description
Network protocol definitions for syncing a commonware_storage::adb::any::Any database.
This module defines the network protocol used for syncing a commonware_storage::adb::any::Any database to a server’s database state. It includes message types, error handling, and validation logic for safe network communication.
The protocol supports:
- Getting server metadata (database size, target hash, operation bounds)
- Fetching operations with cryptographic proofs
- Error handling
Structs§
- Error
Response - Error response.
- GetOperations
Request - Request for operations from the server.
- GetOperations
Response - Response with operations and proof.
- GetServer
Metadata Response - Response with server metadata.
Enums§
- Error
Code - Error codes for protocol errors.
- Message
- Network protocol messages for syncing a commonware_storage::adb::any::Any database.
- Protocol
Error - Errors that can occur during protocol operations.
Constants§
- MAX_
MESSAGE_ SIZE - Maximum message size in bytes (10MB).