Module protocol

Source
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§

ErrorResponse
Error response.
GetOperationsRequest
Request for operations from the server.
GetOperationsResponse
Response with operations and proof.
GetSyncTargetRequest
Request for sync target from server.
GetSyncTargetResponse
Response with sync target.
RequestId
Unique identifier for correlating requests with responses.

Enums§

ErrorCode
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).