diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2025-05-05 20:11:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-05 21:11:52 -0300 |
| commit | ebfcd72a8d545d3f8386051a9ec53475447fbfb8 (patch) | |
| tree | 1cad80cd5c8942086919949ccf6b709a37fd175f | |
| parent | 86f0da716f15b1f1a5a19a9f900ace499c7bc4e2 (diff) | |
Using yaml to fix NIP-01 JSON formatting (#1910)
| -rw-r--r-- | 01.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -14,7 +14,7 @@ Each user has a keypair. Signatures, public key, and encodings are done accordin | |||
| 14 | 14 | ||
| 15 | The only object type that exists is the `event`, which has the following format on the wire: | 15 | The only object type that exists is the `event`, which has the following format on the wire: |
| 16 | 16 | ||
| 17 | ```jsonc | 17 | ```yaml |
| 18 | { | 18 | { |
| 19 | "id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>, | 19 | "id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>, |
| 20 | "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, | 20 | "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, |
| @@ -120,7 +120,7 @@ Clients can send 3 types of messages, which must be JSON arrays, according to th | |||
| 120 | 120 | ||
| 121 | `<filtersX>` is a JSON object that determines what events will be sent in that subscription, it can have the following attributes: | 121 | `<filtersX>` is a JSON object that determines what events will be sent in that subscription, it can have the following attributes: |
| 122 | 122 | ||
| 123 | ```json | 123 | ```yaml |
| 124 | { | 124 | { |
| 125 | "ids": <a list of event ids>, | 125 | "ids": <a list of event ids>, |
| 126 | "authors": <a list of lowercase pubkeys, the pubkey of an event must be one of these>, | 126 | "authors": <a list of lowercase pubkeys, the pubkey of an event must be one of these>, |