Skip to main content

Crate commonware_sync

Crate commonware_sync 

Source
Expand description

Synchronize state between a server and client.

This example shows how to synchronize a client database to a remote server’s database using either full operation replay or compact state transfer. Full sync uses commonware_storage::qmdb::any, commonware_storage::qmdb::current, commonware_storage::qmdb::immutable, or commonware_storage::qmdb::keyless. Compact sync demonstrates the compact-storage variants of commonware_storage::qmdb::immutable and commonware_storage::qmdb::keyless. The CLI selects the logical database family with --family; in compact mode, only the server chooses backing storage with --storage.

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

Re-exports§

pub use error::Error;
pub use databases::any;
pub use databases::current;
pub use databases::immutable;
pub use databases::immutable_compact;
pub use databases::keyless;
pub use databases::keyless_compact;

Modules§

databases
Database-specific modules for the sync example.
error
Error types for the sync example.
net

Functions§

crate_version
Returns the version of the crate.

Type Aliases§

Digest
Digest type used in the database.
Hasher
Hasher type used in the database.
Key
Key type used in the database.
Translator
Translator type for the database.
Value
Value type used in the database.