This commit is contained in:
Kieran
2024-08-27 14:18:58 +01:00
parent fade0164f5
commit 765a18c810
3 changed files with 13 additions and 0 deletions

3
19.md
View File

@@ -36,6 +36,7 @@ These are the possible bech32 prefixes with `TLV`:
- `nevent`: a nostr event
- `naddr`: a nostr _replaceable event_ coordinate
- `nrelay`: a nostr relay (deprecated)
- `nchat`: a nostr chat conversation
These possible standardized `TLV` types are indicated here:
@@ -44,6 +45,7 @@ These possible standardized `TLV` types are indicated here:
- for `nprofile` it will be the 32 bytes of the profile public key
- for `nevent` it will be the 32 bytes of the event id
- for `naddr`, it is the identifier (the `"d"` tag) of the event being referenced. For normal replaceable events use an empty string.
- for `nchat`, see chat nip for details.
- `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
- this may be included multiple times
@@ -53,6 +55,7 @@ These possible standardized `TLV` types are indicated here:
- `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 `nchat`, the NIP number of the chat.
## Examples