From 5611555bd31e5b05bcee6c6e4450adeffd2e820b Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 19 Nov 2026 03:54:54 +0000 Subject: held: a node merges its store's heads beyond what an event may name Past 64 heads, no event is above them all, and what is written builds on the earliest 64 alone: where nobody writes, heads apart stay apart, and a checkpoint naming them is never written. Under a revision with merge events, a node its party lists signs merge events with its node key where its store holds more heads than an event may name, each on as many as it may, the earliest taken first, until no more are left (`Holding::merge`). The worker does so a random wait after the heads first were too many, as it puts again what the document lacks, so that of the members few do at once. `federation.md` says so under Nodes, and the guides say what a node writes by itself and what its log says. --- src/identity.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/identity.rs') diff --git a/src/identity.rs b/src/identity.rs index 23c4f0f..6021a61 100644 --- a/src/identity.rs +++ b/src/identity.rs @@ -68,6 +68,11 @@ impl NodeKey { self.signing.verifying_key().to_bytes() } + /// The key itself: for what signs as SSH does (`federation::event::signed`). + pub(crate) fn signing(&self) -> &SigningKey { + &self.signing + } + pub(crate) fn sign(&self, message: &[u8]) -> [u8; 64] { use ed25519_dalek::Signer; self.signing.sign(message).to_bytes() -- cgit v1.3.1