mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-04-02 09:00:23 +02:00
Badge reference clarification
This commit is contained in:
parent
405cf480e9
commit
2d5935d642
8
58.md
8
58.md
@ -41,7 +41,7 @@ image, the meaning behind the badge, or the reason of it's issuance.
|
||||
|
||||
The following tags MUST be present:
|
||||
|
||||
- An `a` tag referencing a kind `30009` Badge Definition event.
|
||||
- An `a` tag referencing a kind `30009` Badge Definition event. References are in the format `<issuer public key>:<d tag>`
|
||||
- One or more `p` tags referencing each pubkey awarded.
|
||||
|
||||
### Profile Badges Event
|
||||
@ -105,7 +105,7 @@ Clients SHOULD attempt to render the most appropriate badge thumbnail according
|
||||
"kind": 8,
|
||||
"pubkey": "alice",
|
||||
"tags": [
|
||||
["a", "30009:alice:bravery"],
|
||||
["a", "alice:bravery"],
|
||||
["p", "bob", "wss://relay"],
|
||||
["p", "charlie", "wss://relay"],
|
||||
],
|
||||
@ -122,9 +122,9 @@ Honorable Bob The Brave:
|
||||
"pubkey": "bob",
|
||||
"tags": [
|
||||
["d", "profile_badges"],
|
||||
["a", "30009:alice:bravery"],
|
||||
["a", "alice:bravery"],
|
||||
["e", "<bravery badge award event id>", "wss://nostr.academy"],
|
||||
["a", "30009:alice:honor"],
|
||||
["a", "alice:honor"],
|
||||
["e", "<honor badge award event id>", "wss://nostr.academy"],
|
||||
],
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user