diff options
| author | tv <tv@krebsco.de> | 2026-11-19 03:54:54 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-19 05:12:07 +0100 |
| commit | 5611555bd31e5b05bcee6c6e4450adeffd2e820b (patch) | |
| tree | 5169171f4f67e3893c96dbddeff13c2711af2332 /src/identity.rs | |
| parent | 6c6f978189eafa15add0df865f713dc946dfc5cb (diff) | |
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.
Diffstat (limited to 'src/identity.rs')
| -rw-r--r-- | src/identity.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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() |
