mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-04-02 09:00:23 +02:00
docs: make someone happy
This commit is contained in:
parent
a3ff5fafd3
commit
38d8184cc4
54
58.md
54
58.md
@ -51,6 +51,7 @@ Clients SHOULD render the most appropriate badge thumbnail according to the numb
|
||||
|
||||
### Example of Badge Event
|
||||
|
||||
Event:
|
||||
```json
|
||||
{
|
||||
"id": "<charlie's issued badge event id>",
|
||||
@ -59,32 +60,37 @@ Clients SHOULD render the most appropriate badge thumbnail according to the numb
|
||||
"tags": [
|
||||
["p", "<alice's (recipient) pubkey in hex>"]
|
||||
],
|
||||
"content": "{
|
||||
\"long_desc\": \"This user joined our relay 2 years ago.\",
|
||||
\"short_desc\": \"Two-Year Club\",
|
||||
\"image\": \"https://relay.nostr/badges/two-year-club.png\",
|
||||
\"thumbs\": {
|
||||
\"512x512\": \"https://relay.nostr/badges/two-year-club-512x512.png\",
|
||||
\"256x256\": \"https://relay.nostr/badges/two-year-club-256x256.png\",
|
||||
\"128x128\": \"https://relay.nostr/badges/two-year-club-128x128.png\",
|
||||
\"64x64\": \"https://relay.nostr/badges/two-year-club-64x64.png\",
|
||||
\"32x32\": \"https://relay.nostr/badges/two-year-club-32x32.png\",
|
||||
\"16x16\": \"https://relay.nostr/badges/two-year-club-16x16.png\"
|
||||
},
|
||||
\"sha256sums\": {
|
||||
\"image\": \"8d43b3081c8091147e03e41878604606c8aa53d1337d49a4d5e0e8c29c223798\",
|
||||
\"512x512\": \"af94c2afee5321b6acbca7ba00fcfa4ae2e103dda3a3a038e8b0aec4207ef164\",
|
||||
\"256x256\": \"8c1eaf36d0353e20e30511c473411f1df0b9e58f68daadad972a8a6955824a0e\",
|
||||
\"128x128\": \"86b0ebe1cf924f39a0eb4cfde5cdfe8a271b882284fc4f1c353bf6589eef1870\",
|
||||
\"64x64\": \"a92ec141189c8e0228d8c388b9c0e822ecf1347367b834c43c7e82427569e06d\",
|
||||
\"32x32\": \"6afa09c719f0729253ce8034618743d3a3aadd7aa4215554b7e5aa72b46c41a9\",
|
||||
\"16x16\": \"abacf2675c05b7710cf853800a95e4191c10b2005540a39adb4b7cdda617249b\"
|
||||
}
|
||||
}",
|
||||
"content": "<json stringified object shown below>",
|
||||
...other fields...
|
||||
}
|
||||
```
|
||||
|
||||
Content:
|
||||
```json
|
||||
{
|
||||
"long_desc": "This user joined our relay 2 years ago.",
|
||||
"short_desc": "Two-Year Club",
|
||||
"image": "https://relay.nostr/badges/two-year-club.png",
|
||||
"thumbs": {
|
||||
"512x512": "https://relay.nostr/badges/two-year-club-512x512.png",
|
||||
"256x256": "https://relay.nostr/badges/two-year-club-256x256.png",
|
||||
"128x128": "https://relay.nostr/badges/two-year-club-128x128.png",
|
||||
"64x64": "https://relay.nostr/badges/two-year-club-64x64.png",
|
||||
"32x32": "https://relay.nostr/badges/two-year-club-32x32.png",
|
||||
"16x16": "https://relay.nostr/badges/two-year-club-16x16.png"
|
||||
},
|
||||
"sha256sums": {
|
||||
"image": "8d43b3081c8091147e03e41878604606c8aa53d1337d49a4d5e0e8c29c223798",
|
||||
"512x512": "af94c2afee5321b6acbca7ba00fcfa4ae2e103dda3a3a038e8b0aec4207ef164",
|
||||
"256x256": "8c1eaf36d0353e20e30511c473411f1df0b9e58f68daadad972a8a6955824a0e",
|
||||
"128x128": "86b0ebe1cf924f39a0eb4cfde5cdfe8a271b882284fc4f1c353bf6589eef1870",
|
||||
"64x64": "a92ec141189c8e0228d8c388b9c0e822ecf1347367b834c43c7e82427569e06d",
|
||||
"32x32": "6afa09c719f0729253ce8034618743d3a3aadd7aa4215554b7e5aa72b46c41a9",
|
||||
"16x16": "abacf2675c05b7710cf853800a95e4191c10b2005540a39adb4b7cdda617249b"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Example of a Profile Badges Event
|
||||
|
||||
```json
|
||||
@ -94,8 +100,8 @@ Clients SHOULD render the most appropriate badge thumbnail according to the numb
|
||||
"content": "",
|
||||
"tags": [
|
||||
["d", "profile_badges"],
|
||||
["e", "<charlie's issued badge event id>"],
|
||||
]
|
||||
["e", "<charlie's issued badge event id>"]
|
||||
],
|
||||
...other fields...
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user