diff options
| author | Pablo Fernandez <p@f7z.io> | 2023-10-15 21:30:42 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-15 21:30:42 +0300 |
| commit | a482f47ae4c36d38062cd0fd3ee6235e57691673 (patch) | |
| tree | a16f57208cd3c3ef74237dafcef277f16d70e688 /58.md | |
| parent | d9400e1e7b08225aedb6c78b522c5ad07b5198b4 (diff) | |
| parent | 202e18f2b256646148805880ed58731c1c8b2b9b (diff) | |
Merge branch 'master' into vending-machine
Diffstat (limited to '58.md')
| -rw-r--r-- | 58.md | 12 |
1 files changed, 3 insertions, 9 deletions
| @@ -9,15 +9,9 @@ Badges | |||
| 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 | 13 | |
| 14 | the badge (e.g. `bravery`) published by the badge issuer. Badge definitions can | 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. |
| 15 | be updated. | ||
| 16 | |||
| 17 | 2. A "Badge Award" event is a kind `8` event with a single `a` tag referencing | ||
| 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`. |