diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-11-02 19:46:35 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-11-02 19:46:37 -0300 |
| commit | b14b9d2120ea7fd287eb44249ce5910df7ad45d2 (patch) | |
| tree | 460054b19280b595019633a64fec2dcd046d87a3 /01.md | |
| parent | cee69773473a9f6fed2cd7a150d70e77837a42b4 (diff) | |
nip-01: clarify that whitespace is allowed inside the strings.
closes https://github.com/nostr-protocol/nips/pull/861
Diffstat (limited to '01.md')
| -rw-r--r-- | 01.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -29,9 +29,9 @@ The only object type that exists is the `event`, which has the following format | |||
| 29 | } | 29 | } |
| 30 | ``` | 30 | ``` |
| 31 | 31 | ||
| 32 | To obtain the `event.id`, we `sha256` the serialized event. The serialization is done over the UTF-8 JSON-serialized string (with no white space or line breaks) of the following structure: | 32 | To obtain the `event.id`, we `sha256` the serialized event. The serialization is done over the UTF-8 JSON-serialized string (with no white space or line breaks between the fields) of the following structure: |
| 33 | 33 | ||
| 34 | ```json | 34 | ``` |
| 35 | [ | 35 | [ |
| 36 | 0, | 36 | 0, |
| 37 | <pubkey, as a lowercase hex string>, | 37 | <pubkey, as a lowercase hex string>, |