From 8f28533f31d6a7ee6368d444337dc8c5be691475 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 18:45:59 +0000 Subject: federation: fixed bytes of events, versions, roots and sizes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Vectors (`docs/federation-tests.md`, Fixed bytes) for a write and its signature and ID, the first version of two parties and its hash, the root it makes and its ID, a version event, an event whose value holds names that UTF-16 units sort otherwise than bytes, and events at federation 1's sizes and just past them: 256 KiB, 32 segments of 255 bytes, 64 nodes, integers to 2⁵³. Each value was computed apart from this code, by a script of its own: JCS by hand, Ed25519 by another library, and the signature's blob as OpenSSH's `PROTOCOL.sshsig` describes it, as `ssh-keygen -Y sign` makes it. Checking one against `ssh-keygen` itself is left to whoever has it at hand. --- src/federation/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/federation/mod.rs') diff --git a/src/federation/mod.rs b/src/federation/mod.rs index 8f6f351..c3e4431 100644 --- a/src/federation/mod.rs +++ b/src/federation/mod.rs @@ -18,4 +18,6 @@ mod model; #[cfg(test)] mod properties; pub(crate) mod store; +#[cfg(test)] +mod vectors; pub(crate) mod version; -- cgit v1.3.1