From b9da1b6b9a43dc4bfe1a6f99ea73342cf23c028c Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 17:55:32 +0000 Subject: federation: versions, their rules, and the paths they match `Version::read` reads a version by itself, and says what makes one none (`docs/federation.md`, The policy): a field missing or more but for `checkpoint`, another federation, a number and `changes` that don't go together, keys and node lists not of the same parties, a party's name, its keys (one to 16, spelled as keys, none twice in the version) and its node list (up to 64 node IDs, none twice), checkpoint heads, and rules (a literal first segment and not `_continuum`, `{party}` once at most, `**` last only, a writer that is a party of it, `"{party}"` where the path holds `{party}`, or `false`; a path as a write's may be). `changes_validly` asks whether it changes another: one past its number, its hash, and each `since` its own number or the other's with the same keys, or node list. `writer` gives who writes at a path, by the first rule that matches; `only_moves_on` whether it changes nothing but its number, what it changes and its checkpoint. --- src/federation/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/federation/mod.rs') diff --git a/src/federation/mod.rs b/src/federation/mod.rs index 9c49e66..ddd4c4a 100644 --- a/src/federation/mod.rs +++ b/src/federation/mod.rs @@ -8,3 +8,4 @@ pub(crate) mod jcs; pub(crate) mod keys; pub(crate) mod store; +pub(crate) mod version; -- cgit v1.3.1