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, root digest, operation bounds)
- Fetching operations with cryptographic proofs
- Getting target updates for dynamic sync
- Error handling
Structs§
- Error
Response - Error response.
- GetOperations
Request - Request for operations from the server.
- GetOperations
Response - Response with operations and proof.
- GetSync
Target Request - Request for sync target from server.
- GetSync
Target Response - Response with sync target.
- Request
Id - Unique identifier for correlating requests with responses.
Enums§
- Error
Code - Error codes for protocol errors.
- Message
- Network protocol messages for syncing a commonware_storage::adb::any::Any database.
Constants§
- MAX_
MESSAGE_ SIZE - Maximum message size in bytes (10MB).