From 7bb467a013a9146620b633e3c3cdd21e3a48f80f Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 16:15:04 +0000 Subject: federation: the feature, and the store's fold `federation`, a feature of its own, builds what `docs/federation.md` and `docs/store.md` design, stage by stage; without it continuum builds and behaves as it does. The aliases build with it, and `docs/development.md` says so. Its first part is the store's: an event's ID, the SHA-256 of its bytes written as 64 lower-case hex digits and read back only so, and the `Fold` trait as `docs/store.md` gives it. The trait reads a checkpoint's parts too, the heads it was built at and the events it keeps, which a node taking a pinned checkpoint needs; the design names it. Nothing uses either yet, but a test. --- src/federation/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/federation/mod.rs (limited to 'src/federation/mod.rs') diff --git a/src/federation/mod.rs b/src/federation/mod.rs new file mode 100644 index 0000000..0005038 --- /dev/null +++ b/src/federation/mod.rs @@ -0,0 +1,8 @@ +//! A federation of parties that don't trust each other (`docs/federation.md`), on a store +//! of events generic over what they read as (`docs/store.md`). Built stage by stage behind +//! the `federation` feature; no node runs any of it yet. + +// Until a node runs it (stage 3), parts of it are used by nothing, or by tests alone. +#![allow(dead_code)] + +pub(crate) mod store; -- cgit v1.3.1