diff options
| author | Semisol <45574030+Semisol@users.noreply.github.com> | 2023-11-17 18:12:47 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-17 18:12:47 +0300 |
| commit | 4d709d1804de45bab3739ce814d4b0c0b211c273 (patch) | |
| tree | 253992f869dfe219542392b234c1bad40491bf68 | |
| parent | 21d71791c89f41fb93f84b69d6db253bb7b403c4 (diff) | |
add form feed and backspace
| -rw-r--r-- | 01.md | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -46,11 +46,13 @@ To obtain the `event.id`, we `sha256` the serialized event. The serialization is | |||
| 46 | To prevent implementation differences from creating a different event ID for the same event, the following rules MUST be followed while serializing: | 46 | To prevent implementation differences from creating a different event ID for the same event, the following rules MUST be followed while serializing: |
| 47 | - No whitespace, line breaks or other unnecessary formatting should be included in the output JSON. | 47 | - No whitespace, line breaks or other unnecessary formatting should be included in the output JSON. |
| 48 | - No characters except the following should be escaped, and instead should be included verbatim: | 48 | - No characters except the following should be escaped, and instead should be included verbatim: |
| 49 | - The line break, `0x0A`, as `\n` | 49 | - A line break, `0x0A`, as `\n` |
| 50 | - A double quote, `0x22`, as `\"` | 50 | - A double quote, `0x22`, as `\"` |
| 51 | - A backslash, `0x5C`, as `\\` | 51 | - A backslash, `0x5C`, as `\\` |
| 52 | - A carriage return, `0x0D`, as `\r` | 52 | - A carriage return, `0x0D`, as `\r` |
| 53 | - A tab character, `0x09`, as `\t` | 53 | - A tab character, `0x09`, as `\t` |
| 54 | - A backspace, `0x08`, as `\b` | ||
| 55 | - A form feed, `0x0C`, as `\f` | ||
| 54 | - UTF-8 should be used for encoding. | 56 | - UTF-8 should be used for encoding. |
| 55 | 57 | ||
| 56 | ## Communication between clients and relays | 58 | ## Communication between clients and relays |