feat: Introduce Hybrid Logical Clocks in protobuf, update architecture documentation, and add HLC test cases.

This commit is contained in:
2025-12-20 14:29:03 +01:00
commit e1405bb910
20 changed files with 522 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
[package]
name = "lattice-net"
description = "Networking layer for Lattice using Iroh"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
lattice-core = { workspace = true }
iroh = { workspace = true }
iroh-gossip = { workspace = true }
tokio = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
bytes = { workspace = true }
[dev-dependencies]
tokio-test = { workspace = true }
+3
View File
@@ -0,0 +1,3 @@
//! Gossip protocol for broadcasting changes
// TODO: Implement gossip using iroh-gossip
+8
View File
@@ -0,0 +1,8 @@
//! Lattice Networking
//!
//! Networking layer using Iroh:
//! - **Gossip**: Broadcasting changes across the mesh
//! - **Unicast**: Point-to-point communication for reconciliation
pub mod gossip;
pub mod unicast;
+3
View File
@@ -0,0 +1,3 @@
//! Unicast communication for direct peer-to-peer messaging
// TODO: Implement unicast using iroh