Badge reference clarification

This commit is contained in:
Semisol 2023-02-23 15:38:03 +03:00 committed by GitHub
parent 405cf480e9
commit 2d5935d642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
58.md
View File

@ -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"],
],
...