diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-02-03 15:59:07 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-02-03 17:31:56 -0300 |
| commit | 7c444e3474167f7dcdcecf28b8679b022996e958 (patch) | |
| tree | e6bbfdd74ab1eb8495a99464d44a8a2128014703 /19.md | |
| parent | 025beb332cfb90e56ce39c27bba909f05b04147d (diff) | |
NIP-23: long-form content.
Diffstat (limited to '19.md')
| -rw-r--r-- | 19.md | 11 |
1 files changed, 8 insertions, 3 deletions
| @@ -35,6 +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 | - `nref`: a nostr parameterized replaceable event coordinate (NIP-33) | ||
| 38 | 39 | ||
| 39 | These possible standardized `TLV` types are indicated here: | 40 | These possible standardized `TLV` types are indicated here: |
| 40 | 41 | ||
| @@ -42,11 +43,15 @@ These possible standardized `TLV` types are indicated here: | |||
| 42 | - depends on the bech32 prefix: | 43 | - depends on the bech32 prefix: |
| 43 | - 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 |
| 44 | - 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 |
| 45 | - for `nrelay`, this is the relay URL. | 46 | - for `nrelay`, this is the relay URL |
| 47 | - for `nref`, it is the identifier (the `"d"` tag) of the event being referenced | ||
| 46 | - for `nprofile`, `nevent` and `nrelay` this may be included only once. | 48 | - for `nprofile`, `nevent` and `nrelay` this may be included only once. |
| 47 | - `1`: `relay` | 49 | - `1`: `relay` |
| 48 | - 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. | 50 | - for `nprofile`, `nevent` and `nref`, 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 | - not applicable to `nrelay`. | 51 | - `2`: `author` |
| 52 | - for `nref`, the 32 bytes of the pubkey of the event | ||
| 53 | |||
| 54 | |||
| 50 | ## Examples | 55 | ## Examples |
| 51 | 56 | ||
| 52 | - `npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6` should decode into the public key hex `3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d` and vice-versa | 57 | - `npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6` should decode into the public key hex `3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d` and vice-versa |