mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-08 16:18:50 +00:00
Compare commits
2 Commits
global-lis
...
nreq
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
faefbcd68e | ||
|
|
2e1c4b0c69 |
19
19.md
19
19.md
@@ -33,9 +33,10 @@ For these events, the contents are a binary-encoded list of `TLV` (type-length-v
|
||||
These are the possible bech32 prefixes with `TLV`:
|
||||
|
||||
- `nprofile`: a nostr profile
|
||||
- `nevent`: a nostr event
|
||||
- `nevent`: a nostr event pointer
|
||||
- `nrelay`: a nostr relay
|
||||
- `naddr`: a nostr _replaceable event_ coordinate
|
||||
- `nreq`: a nostr filter
|
||||
|
||||
These possible standardized `TLV` types are indicated here:
|
||||
|
||||
@@ -46,14 +47,28 @@ These possible standardized `TLV` types are indicated here:
|
||||
- for `nrelay`, this is the relay URL
|
||||
- for `naddr`, it is the identifier (the `"d"` tag) of the event being referenced. For non-parameterized replaceable events, use an empty string.
|
||||
- `1`: `relay`
|
||||
- for `nprofile`, `nevent` and `naddr`, _optionally_, a relay in which the entity (profile or event) is more likely to be found, encoded as ascii
|
||||
- for `nprofile`, `nevent`, `naddr`, `nreq`, _optionally_, 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`
|
||||
- for `naddr`, the 32 bytes of the pubkey of the event
|
||||
- for `nevent`, _optionally_, the 32 bytes of the pubkey of the event
|
||||
- for `nreq`, _optionally_, 32 bytes of one entry in the `"authors"` field, can be specified multiple times
|
||||
- `3`: `kind`
|
||||
- for `naddr`, the 32-bit unsigned integer of the kind, big-endian
|
||||
- for `nevent`, _optionally_, the 32-bit unsigned integer of the kind, big-endian
|
||||
- for `nreq`, _optionally_, 32-bit unsigned integer representing one entry in the `"kinds"` field, can be specified multiple times
|
||||
- `4`: `id`
|
||||
- for `nreq`, _optionally_, 32 bytes of one entry in the `"authors"` field, can be specified multiple times
|
||||
- `5`: `tag`
|
||||
- for `nreq`, _optionally_, the UTF-8 encoded single-letter of the tag to be searched (the `*` in a `"#*"` field) followed by one entry in this `#*` field, can be specified multiple times
|
||||
- `6`: `limit`
|
||||
- for `nreq`, _optionally_, 32-bit unsigned integer representing the `"limit"` field
|
||||
- `7`: `since`
|
||||
- for `nreq`, _optionally_, 32-bit unsigned integer representing the `"since"` field
|
||||
- `8`: `until`
|
||||
- for `nreq`, _optionally_, 32-bit unsigned integer representing the `"until"` field
|
||||
- `9`: `search`
|
||||
- for `nreq`, _optionally_, the UTF-8 encoded string of the `"search"` field
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
Reference in New Issue
Block a user