aboutsummaryrefslogtreecommitdiffstats
path: root/src/access/sshsig.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 17:48:39 +0000
committertv <tv@krebsco.de>2026-11-16 19:06:58 +0100
commit602fee6edc1e8ecd35655d9a3b12c861de0428d4 (patch)
tree8fec158a4f7959744425f933e4e60d23dd819a8e /src/access/sshsig.rs
parenteeda8fb6ced3ac9887f43196d3396beadbe78819 (diff)
federation: JSON written one way
An event is the JCS encoding (RFC 8785) of a JSON object, within the limits federation 1 sets (`docs/federation.md`, Events). `jcs::read` gives the JSON bytes are only where they are what JCS writes of it: names sorted by their UTF-16 units and none twice, no whitespace, strings escaped as ECMAScript escapes them; and, beyond JCS, numbers only integers from −2⁵³ to 2⁵³, strings only whole Unicode characters, and objects and arrays nested up to 32 deep. Tests show what reads back and what is none, the order of names by UTF-16 units that byte order gets wrong, and the depth.
Diffstat (limited to 'src/access/sshsig.rs')
0 files changed, 0 insertions, 0 deletions