From 4d709d1804de45bab3739ce814d4b0c0b211c273 Mon Sep 17 00:00:00 2001 From: Semisol <45574030+Semisol@users.noreply.github.com> Date: Fri, 17 Nov 2023 18:12:47 +0300 Subject: [PATCH] add form feed and backspace --- 01.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/01.md b/01.md index f5673b3..0840f2e 100644 --- a/01.md +++ b/01.md @@ -46,11 +46,13 @@ To obtain the `event.id`, we `sha256` the serialized event. The serialization is To prevent implementation differences from creating a different event ID for the same event, the following rules MUST be followed while serializing: - No whitespace, line breaks or other unnecessary formatting should be included in the output JSON. - No characters except the following should be escaped, and instead should be included verbatim: - - The line break, `0x0A`, as `\n` + - A line break, `0x0A`, as `\n` - A double quote, `0x22`, as `\"` - A backslash, `0x5C`, as `\\` - A carriage return, `0x0D`, as `\r` - A tab character, `0x09`, as `\t` + - A backspace, `0x08`, as `\b` + - A form feed, `0x0C`, as `\f` - UTF-8 should be used for encoding. ## Communication between clients and relays