Crate commonware_sync

Source
Expand description

Synchronize state between a server and client.

This library how to use commonware_storage::adb::any::sync to synchronize a client’s commonware_storage::adb::any::Any database to a server’s database.

It includes network protocols, database configuration, and utilities for creating test data.

The sync example showcases how to:

Re-exports§

pub use resolver::Resolver;
pub use protocol::*;

Modules§

protocol
Network protocol definitions for syncing a commonware_storage::adb::any::Any database.
resolver
Provides a Resolver implementation that communicates with a remote server to fetch operations and proofs.

Functions§

crate_version
Returns the version of the crate.
create_adb_config
Create a database configuration with appropriate partitioning.
create_test_operations
Create deterministic test operations for demonstration purposes.

Type Aliases§

Database
Database type alias.
Hasher
Hasher type used in the database.
Key
Key type used in the database.
Operation
Operation type alias.
Translator
Translator type for the database.
Value
Value type used in the database.