From 969767fa5270f90fb3b289177d83d6baab1cbdc2 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 19:33:58 +0000 Subject: document: a store swarm's genesis change, built byte for byte from its root A swarm holding a store starts from its genesis change, which every node builds from the store's root alike, so that one root makes one swarm (`docs/store.md`, What the document holds). `document::events` builds it: it writes the policy naming the fold, the swarm's ID (the root's) and the root at its ID, as bytes, each making the maps on its way, under the writer made of the root ID's first 16 bytes, at time 0, without a message. `is_genesis` tells such a change by building it again from the root it holds; `started` is a document holding it, written to under a writer of its own; `ids` and `bytes` read the events a document holds at `_continuum/events`. All of it behind the `federation` feature. --- src/document/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/document/mod.rs') diff --git a/src/document/mod.rs b/src/document/mod.rs index 76349ad..e548d01 100644 --- a/src/document/mod.rs +++ b/src/document/mod.rs @@ -51,6 +51,8 @@ pub(crate) mod at; #[cfg(test)] pub(crate) mod bench; pub(crate) mod changes; +#[cfg(feature = "federation")] +pub(crate) mod events; pub(crate) mod file; pub(crate) mod inspect; pub(crate) mod lock; -- cgit v1.3.1