upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2023-02-06 08:11:11 -0300
committerfiatjaf <fiatjaf@gmail.com>2023-02-06 08:11:11 -0300
commit5a5ef4a82d4e9f289ee15939deda3caf87ebde73 (patch)
tree347544b7c420e0e7e6152e3c8a8d9788e43fdcff
parentea48646a0f2773c9b55bf8ff851eae98b200b3d3 (diff)
encode `kind` into `nitem`
-rw-r--r--19.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/19.md b/19.md
index caf60f9..2caf8bd 100644
--- a/19.md
+++ b/19.md
@@ -45,11 +45,13 @@ These possible standardized `TLV` types are indicated here:
45 - for `nevent` it will be the 32 bytes of the event id 45 - for `nevent` it will be the 32 bytes of the event id
46 - for `nrelay`, this is the relay URL 46 - for `nrelay`, this is the relay URL
47 - for `nitem`, it is the identifier (the `"d"` tag) of the event being referenced 47 - for `nitem`, it is the identifier (the `"d"` tag) of the event being referenced
48 - for `nprofile`, `nevent` and `nrelay` this may be included only once.
49- `1`: `relay` 48- `1`: `relay`
50 - 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 49 - for `nprofile`, `nevent` and `nitem`, 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
51- `2`: `author` 51- `2`: `author`
52 - for `nitem`, the 32 bytes of the pubkey of the event 52 - for `nitem`, the 32 bytes of the pubkey of the event
53- `3`: `kind`
54 - for `nitem`, the 32-bit unsigned integer of the kind, big-endian
53 55
54 56
55## Examples 57## Examples