aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/access.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 17:55:32 +0000
committertv <tv@krebsco.de>2026-11-16 19:07:32 +0100
commitd61ebc07db70d9f03b1d74b03712cea9310b05a7 (patch)
treec6ac56c0c73af34b55918ddd53c147ab0a6345da /src/api/access.rs
parentb9da1b6b9a43dc4bfe1a6f99ea73342cf23c028c (diff)
federation: events and checkpoints as bytes, and a harness that signs them
`Event::read` reads an event and says what makes one none (`docs/federation.md`, Events): bytes that aren't the JCS of the JSON they read as, larger than 256 KiB, with no dependency or more than 64, not ascending, or a field missing or more; and of a signed event, a party that is no party's name, a key or signature that doesn't read back to itself or doesn't hold, a path, key set, node list or vote spelled otherwise. A proposal is taken whatever it holds, named by its hash; a version event names a hash. `Checkpoint` reads and writes `{"at", "keeps", "version"}`, a root among them, which is no event. The tests' harness (`docs/federation-tests.md`, The harness) makes parties with keys from seeds, signs each kind of event as the design says, and spells versions out.
Diffstat (limited to 'src/api/access.rs')
0 files changed, 0 insertions, 0 deletions