From bb860d2cf0adad80016edb7a7baed4df291b828c Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 30 Nov 2026 14:59:37 +0000 Subject: federation: what a set hands the node to read is as a store's document Beside its members' entries, the policy of a swarm holding a store and the swarm's ID (Holding::entries): what reads a document for them reads the same of a node on a set. Tokens are checked against it (api::login): their issuer's entry is there, and a node takes none another issued, as the policy says; read of the empty Automerge document beside, every token was refused. --- src/state/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/state/mod.rs') diff --git a/src/state/mod.rs b/src/state/mod.rs index d512b2b..21478de 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -404,7 +404,8 @@ impl AppState { } } - /// The members' entries as a document has them, where this node's document keeps + /// What the node reads of a document at paths (its members, the policy, the swarm's + /// ID), where this node's document keeps /// them apart (a set of events, `Holding::entries`): none, where they are in the /// document it holds. pub(crate) fn entries(&self) -> Option { -- cgit v1.3.1