mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
nip-01: clarify that whitespace is allowed inside the strings.
closes https://github.com/nostr-protocol/nips/pull/861
This commit is contained in:
parent
cee6977347
commit
b14b9d2120
4
01.md
4
01.md
|
@ -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,
|
0,
|
||||||
<pubkey, as a lowercase hex string>,
|
<pubkey, as a lowercase hex string>,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user