nip-01: clarify that whitespace is allowed inside the strings.

closes https://github.com/nostr-protocol/nips/pull/861
This commit is contained in:
fiatjaf 2023-11-02 19:46:35 -03:00
parent cee6977347
commit b14b9d2120
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

4
01.md
View File

@ -29,9 +29,9 @@ The only object type that exists is the `event`, which has the following format
}
```
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:
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:
```json
```
[
0,
<pubkey, as a lowercase hex string>,