aboutsummaryrefslogtreecommitdiffstats
path: root/src/federation/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 17:50:16 +0000
committertv <tv@krebsco.de>2026-11-16 19:07:12 +0100
commitbc665e2ad7e107baaf7d7b5d388ef228fc29e527 (patch)
tree48c68dee50ed4a9116f02f2a760aea1ed759a088 /src/federation/mod.rs
parent602fee6edc1e8ecd35655d9a3b12c861de0428d4 (diff)
federation: keys, node IDs and signatures, each spelled one way
A key is `ssh-ed25519`, one space, and its base64, padded and canonical, with no comment, its 32 bytes an Ed25519 public key; a node ID is spelled as continuum spells it, its key one too; and a signature is the SSHSIG blob of version 1 for the namespace `continuum-federation`, hashed with `sha512`, its reserved field empty, its key the event's, in base64, padded and canonical, unarmored, checked by continuum's strict check (`access::sshsig::verify_blob`) and read back to what `ssh-keygen` writes around it. `keys::sign` makes one, for clients and tests. Tests show each spelled otherwise taken for none.
Diffstat (limited to 'src/federation/mod.rs')
-rw-r--r--src/federation/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/federation/mod.rs b/src/federation/mod.rs
index 6485c8a..9c49e66 100644
--- a/src/federation/mod.rs
+++ b/src/federation/mod.rs
@@ -6,4 +6,5 @@
#![allow(dead_code)]
pub(crate) mod jcs;
+pub(crate) mod keys;
pub(crate) mod store;