diff options
| author | Jonathan Staab <shtaab@gmail.com> | 2023-08-24 15:18:50 -0700 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2023-08-25 08:27:24 -0300 |
| commit | 208dee210249f84496ddfa823542d023e23b3edb (patch) | |
| tree | 4a296a79ae1b447d5fc0af70675e60b27d81086a | |
| parent | 76f5857f88a6263820c698484f64fac27bed3462 (diff) | |
Define how to encode a non-parameterized replaceable event as a naddr
| -rw-r--r-- | 19.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -35,7 +35,7 @@ These are the possible bech32 prefixes with `TLV`: | |||
| 35 | - `nprofile`: a nostr profile | 35 | - `nprofile`: a nostr profile |
| 36 | - `nevent`: a nostr event | 36 | - `nevent`: a nostr event |
| 37 | - `nrelay`: a nostr relay | 37 | - `nrelay`: a nostr relay |
| 38 | - `naddr`: a nostr _parameterized replaceable event_ coordinate | 38 | - `naddr`: a nostr _replaceable event_ coordinate |
| 39 | 39 | ||
| 40 | These possible standardized `TLV` types are indicated here: | 40 | These possible standardized `TLV` types are indicated here: |
| 41 | 41 | ||
| @@ -44,7 +44,7 @@ These possible standardized `TLV` types are indicated here: | |||
| 44 | - for `nprofile` it will be the 32 bytes of the profile public key | 44 | - for `nprofile` it will be the 32 bytes of the profile public key |
| 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 `naddr`, it is the identifier (the `"d"` tag) of the event being referenced | 47 | - for `naddr`, it is the identifier (the `"d"` tag) of the event being referenced. For non-parameterized replaceable events, use an empty string. |
| 48 | - `1`: `relay` | 48 | - `1`: `relay` |
| 49 | - for `nprofile`, `nevent` and `naddr`, _optionally_, a relay in which the entity (profile or event) is more likely to be found, encoded as ascii | 49 | - for `nprofile`, `nevent` and `naddr`, _optionally_, 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 | 50 | - this may be included multiple times |