diff options
Diffstat (limited to '51.md')
| -rw-r--r-- | 51.md | 8 |
1 files changed, 3 insertions, 5 deletions
| @@ -2,15 +2,13 @@ NIP-51 | |||
| 2 | ====== | 2 | ====== |
| 3 | 3 | ||
| 4 | Lists | 4 | Lists |
| 5 | ------------------------- | 5 | ----- |
| 6 | 6 | ||
| 7 | `draft` `optional` `author:fiatjaf` `author:arcbtc` `author:monlovesmango` `author:eskema` `depends:33` | 7 | `draft` `optional` `author:fiatjaf` `author:arcbtc` `author:monlovesmango` `author:eskema` |
| 8 | 8 | ||
| 9 | A "list" event is defined as having a list of public and/or private tags. Public tags will be listed in the event `tags`. Private tags will be encrypted in the event `content`. Encryption for private tags will use [NIP-04 - Encrypted Direct Message](04.md) encryption, using the list author's private and public key for the shared secret. A distinct event kind should be used for each list type created. | 9 | A "list" event is defined as having a list of public and/or private tags. Public tags will be listed in the event `tags`. Private tags will be encrypted in the event `content`. Encryption for private tags will use [NIP-04 - Encrypted Direct Message](04.md) encryption, using the list author's private and public key for the shared secret. A distinct event kind should be used for each list type created. |
| 10 | 10 | ||
| 11 | If a list type should only be defined once per user (like the 'Mute' list), the list type's events should follow the specification for [NIP-16 - Replaceable Events](16.md). These lists may be referred to as 'replaceable lists'. | 11 | If a list should only be defined once per user (like the "mute" list) the list is declared as a _replaceable event_. These lists may be referred to as "replaceable lists". Otherwise, the list is a _parameterized replaceable event_ and the list name will be used as the `d` tag. These lists may be referred to as "parameterized replaceable lists". |
| 12 | |||
| 13 | Otherwise, the list type's events should follow the specification for [NIP-33 - Parameterized Replaceable Events](33.md), where the list name will be used as the 'd' parameter. These lists may be referred to as 'parameterized replaceable lists'. | ||
| 14 | 12 | ||
| 15 | ## Replaceable List Event Example | 13 | ## Replaceable List Event Example |
| 16 | 14 | ||