encode kind into nitem

This commit is contained in:
fiatjaf 2023-02-06 08:11:11 -03:00
parent ea48646a0f
commit 5a5ef4a82d
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

6
19.md
View File

@ -45,11 +45,13 @@ These possible standardized `TLV` types are indicated here:
- for `nevent` it will be the 32 bytes of the event id - for `nevent` it will be the 32 bytes of the event id
- for `nrelay`, this is the relay URL - for `nrelay`, this is the relay URL
- for `nitem`, it is the identifier (the `"d"` tag) of the event being referenced - for `nitem`, it is the identifier (the `"d"` tag) of the event being referenced
- for `nprofile`, `nevent` and `nrelay` this may be included only once.
- `1`: `relay` - `1`: `relay`
- for `nprofile`, `nevent` and `nitem`, a relay in which the entity (profile or event) is more likely to be found, encoded as UTF-8. This may be included multiple times - for `nprofile`, `nevent` and `nitem`, a relay in which the entity (profile or event) is more likely to be found, encoded as ascii
- this may be included multiple times
- `2`: `author` - `2`: `author`
- for `nitem`, the 32 bytes of the pubkey of the event - for `nitem`, the 32 bytes of the pubkey of the event
- `3`: `kind`
- for `nitem`, the 32-bit unsigned integer of the kind, big-endian
## Examples ## Examples