diff options
| author | Semisol <45574030+Semisol@users.noreply.github.com> | 2023-11-19 01:45:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-19 01:45:41 +0100 |
| commit | da19c078ab892b578a5c35968443205c9e8ac27f (patch) | |
| tree | 17a9f4f3105acdae234d3bc67e42571aed261fa2 /58.md | |
| parent | 4d709d1804de45bab3739ce814d4b0c0b211c273 (diff) | |
| parent | 5dcfe85306434f21ecb1e7a47edd92b2e3e64f9a (diff) | |
Merge branch 'master' into clarify-json-serialization
Diffstat (limited to '58.md')
| -rw-r--r-- | 58.md | 12 |
1 files changed, 3 insertions, 9 deletions
| @@ -4,20 +4,14 @@ NIP-58 | |||
| 4 | Badges | 4 | Badges |
| 5 | ------ | 5 | ------ |
| 6 | 6 | ||
| 7 | `draft` `optional` `author:cameri` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | Three special events are used to define, award and display badges in | 9 | Three special events are used to define, award and display badges in |
| 10 | user profiles: | 10 | user profiles: |
| 11 | 11 | ||
| 12 | 1. A "Badge Definition" event is defined as a parameterized replaceable event | 12 | 1. A "Badge Definition" event is defined as a parameterized replaceable event with kind `30009` having a `d` tag with a value that uniquely identifies the badge (e.g. `bravery`) published by the badge issuer. Badge definitions can be updated. |
| 13 | with kind `30009` having a `d` tag with a value that uniquely identifies | ||
| 14 | the badge (e.g. `bravery`) published by the badge issuer. Badge definitions can | ||
| 15 | be updated. | ||
| 16 | 13 | ||
| 17 | 2. A "Badge Award" event is a kind `8` event with a single `a` tag referencing | 14 | 2. A "Badge Award" event is a kind `8` event with a single `a` tag referencing a "Badge Definition" event and one or more `p` tags, one for each pubkey the badge issuer wishes to award. Awarded badges are immutable and non-transferrable. |
| 18 | a "Define Badge" event and one or more `p` tags, one for each pubkey the | ||
| 19 | badge issuer wishes to award. The value for the `a` tag MUST follow the format | ||
| 20 | defined in [NIP-33](33.md). Awarded badges are immutable and non-transferrable. | ||
| 21 | 15 | ||
| 22 | 3. A "Profile Badges" event is defined as a parameterized replaceable event | 16 | 3. A "Profile Badges" event is defined as a parameterized replaceable event |
| 23 | with kind `30008` with a `d` tag with the value `profile_badges`. | 17 | with kind `30008` with a `d` tag with the value `profile_badges`. |