diff options
Diffstat (limited to '01.md')
| -rw-r--r-- | 01.md | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -16,8 +16,8 @@ The only object type that exists is the `event`, which has the following format | |||
| 16 | 16 | ||
| 17 | ```json | 17 | ```json |
| 18 | { | 18 | { |
| 19 | "id": <32-bytes sha256 of the the serialized event data> | 19 | "id": <32-bytes lowercase hex-encoded sha256 of the the serialized event data> |
| 20 | "pubkey": <32-bytes hex-encoded public key of the event creator>, | 20 | "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, |
| 21 | "created_at": <unix timestamp in seconds>, | 21 | "created_at": <unix timestamp in seconds>, |
| 22 | "kind": <integer>, | 22 | "kind": <integer>, |
| 23 | "tags": [ | 23 | "tags": [ |
| @@ -66,8 +66,8 @@ Clients can send 3 types of messages, which must be JSON arrays, according to th | |||
| 66 | "kinds": <a list of a kind numbers>, | 66 | "kinds": <a list of a kind numbers>, |
| 67 | "#e": <a list of event ids that are referenced in an "e" tag>, | 67 | "#e": <a list of event ids that are referenced in an "e" tag>, |
| 68 | "#p": <a list of pubkeys that are referenced in a "p" tag>, | 68 | "#p": <a list of pubkeys that are referenced in a "p" tag>, |
| 69 | "since": <a timestamp, events must be newer than this to pass>, | 69 | "since": <an integer unix timestamp, events must be newer than this to pass>, |
| 70 | "until": <a timestamp, events must be older than this to pass>, | 70 | "until": <an integer unix timestamp, events must be older than this to pass>, |
| 71 | "limit": <maximum number of events to be returned in the initial query> | 71 | "limit": <maximum number of events to be returned in the initial query> |
| 72 | } | 72 | } |
| 73 | ``` | 73 | ``` |