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/meta.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/document/meta.rs') diff --git a/src/document/meta.rs b/src/document/meta.rs index 3b693cf..7a9a489 100644 --- a/src/document/meta.rs +++ b/src/document/meta.rs @@ -23,6 +23,7 @@ //! * `logouts/`: when a user's tokens were last revoked (`access::registry`). //! * `sessions//`: a session of the user ended (logged out of), until //! when it would have lasted: its tokens aren't taken (`access::registry`). +//! * `events/`: in a swarm holding a store, its events (`document::events`). //! * `local//`: never stored, and never writable: what a node holds alone //! (its log filter, its configuration, its debug endpoints), named for capabilities //! (`api::access::needed`). @@ -45,6 +46,8 @@ pub(crate) const BANNED: &str = "banned"; pub(crate) const LOGOUTS: &str = "logouts"; pub(crate) const SESSIONS: &str = "sessions"; pub(crate) const LOCAL: &str = "local"; +#[cfg(feature = "federation")] +pub(crate) const EVENTS: &str = "events"; /// The store path `_continuum/`. pub(crate) fn path(parts: &[&str]) -> Vec { -- cgit v1.3.1