diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-03-15 08:06:33 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-03-15 08:06:33 -0300 |
| commit | e1004d3d4bca4542f1862886b20c6a1c8b4d9e0b (patch) | |
| tree | 322ae2c816c9865491cb6542df3eac913168a631 /19.md | |
| parent | a886b43b48d3e52441bf97e1aa0de39ac2560843 (diff) | |
mention possibility of pubkey on `nevent`.
Diffstat (limited to '19.md')
| -rw-r--r-- | 19.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -46,14 +46,14 @@ These possible standardized `TLV` types are indicated here: | |||
| 46 | - for `nrelay`, this is the relay URL | 46 | - for `nrelay`, this is the relay URL |
| 47 | - for `naddr`, it is the identifier (the `"d"` tag) of the event being referenced | 47 | - for `naddr`, it is the identifier (the `"d"` tag) of the event being referenced |
| 48 | - `1`: `relay` | 48 | - `1`: `relay` |
| 49 | - for `nprofile`, `nevent` and `naddr`, a relay in which the entity (profile or event) is more likely to be found, encoded as ascii | 49 | - for `nprofile`, `nevent` and `naddr`, _optionally_, a relay in which the entity (profile or event) is more likely to be found, encoded as ascii |
| 50 | - this may be included multiple times | 50 | - this may be included multiple times |
| 51 | - `2`: `author` | 51 | - `2`: `author` |
| 52 | - for `naddr`, the 32 bytes of the pubkey of the event | 52 | - for `naddr`, the 32 bytes of the pubkey of the event |
| 53 | - for `nevent`, _optionally_, the 32 bytes of the pubkey of the event | ||
| 53 | - `3`: `kind` | 54 | - `3`: `kind` |
| 54 | - for `naddr`, the 32-bit unsigned integer of the kind, big-endian | 55 | - for `naddr`, the 32-bit unsigned integer of the kind, big-endian |
| 55 | 56 | ||
| 56 | |||
| 57 | ## Examples | 57 | ## Examples |
| 58 | 58 | ||
| 59 | - `npub10elfcs4fr0l0r8af98jlmgdh9c8tcxjvz9qkw038js35mp4dma8qzvjptg` should decode into the public key hex `7e7e9c42a91bfef19fa929e5fda1b72e0ebc1a4c1141673e2794234d86addf4e` and vice-versa | 59 | - `npub10elfcs4fr0l0r8af98jlmgdh9c8tcxjvz9qkw038js35mp4dma8qzvjptg` should decode into the public key hex `7e7e9c42a91bfef19fa929e5fda1b72e0ebc1a4c1141673e2794234d86addf4e` and vice-versa |