mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
encode kind
into nitem
This commit is contained in:
parent
ea48646a0f
commit
5a5ef4a82d
6
19.md
6
19.md
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user