From f74a2226065639b384314a1962e8177146244861 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 17:19:28 +0000 Subject: federation-tests: vectors for JCS's order of names, and for the sizes JCS sorts an object's names by their UTF-16 units, not by their bytes or code points; the two differ for a name from U+E000 to U+FFFF beside one beyond U+FFFF. Names in events and versions are ASCII, but a value is any JSON: a vector with two such names catches a builder sorting strings as Rust does. And vectors at federation 1's sizes and just past them. --- docs/federation-tests.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/federation-tests.md b/docs/federation-tests.md index 7e92371..24c48f4 100644 --- a/docs/federation-tests.md +++ b/docs/federation-tests.md @@ -110,10 +110,13 @@ each row marked sim expects. ## Fixed bytes -Vectors for: an event and its ID, a signature, a version and its hash, a checkpoint and -its ID, the genesis change of a federation's root and of a fork's, and a snapshot after -a checkpoint. A vector that changes is a change of the federation, which takes its next -number ([`federation.md`](federation.md), Changing the federation). +Vectors for: an event and its ID; an event whose value holds names JCS sorts by their +UTF-16 units otherwise than by their bytes (one from U+E000 to U+FFFF beside one beyond +U+FFFF); events at federation 1's sizes and just past them; a signature, a version and +its hash, a checkpoint and its ID, the genesis change of a federation's root and of a +fork's, and a snapshot after a checkpoint. A vector that changes is a change of the +federation, which takes its next number ([`federation.md`](federation.md), Changing the +federation). ## Fuzzing and mutants -- cgit v1.3.1