upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--11.md4
-rw-r--r--17.md2
-rw-r--r--22.md14
-rw-r--r--29.md2
-rw-r--r--46.md8
-rw-r--r--96.md4
6 files changed, 17 insertions, 17 deletions
diff --git a/11.md b/11.md
index 8efd0f0..8af4f31 100644
--- a/11.md
+++ b/11.md
@@ -262,7 +262,7 @@ processed by appropriate client software.
262 262
263Relays that require payments may want to expose their fee schedules. 263Relays that require payments may want to expose their fee schedules.
264 264
265```json 265```jsonc
266{ 266{
267 "payments_url": "https://my-relay/payments", 267 "payments_url": "https://my-relay/payments",
268 "fees": { 268 "fees": {
@@ -270,7 +270,7 @@ Relays that require payments may want to expose their fee schedules.
270 "subscription": [{ "amount": 5000000, "unit": "msats", "period": 2592000 }], 270 "subscription": [{ "amount": 5000000, "unit": "msats", "period": 2592000 }],
271 "publication": [{ "kinds": [4], "amount": 100, "unit": "msats" }], 271 "publication": [{ "kinds": [4], "amount": 100, "unit": "msats" }],
272 }, 272 },
273 ... 273 // other fields...
274} 274}
275``` 275```
276 276
diff --git a/17.md b/17.md
index 4b96bce..72f40c4 100644
--- a/17.md
+++ b/17.md
@@ -47,7 +47,7 @@ An optional `subject` tag defines the current name/topic of the conversation. An
47 47
48Following [NIP-59](59.md), the **unsigned** `kind:14` chat message must be sealed (`kind:13`) and then gift-wrapped (`kind:1059`) to each receiver and the sender individually. 48Following [NIP-59](59.md), the **unsigned** `kind:14` chat message must be sealed (`kind:13`) and then gift-wrapped (`kind:1059`) to each receiver and the sender individually.
49 49
50```js 50```jsonc
51{ 51{
52 "id": "<usual hash>", 52 "id": "<usual hash>",
53  "pubkey": randomPublicKey, 53  "pubkey": randomPublicKey,
diff --git a/22.md b/22.md
index 3706aec..f11925f 100644
--- a/22.md
+++ b/22.md
@@ -13,7 +13,7 @@ It uses `kind:1111` with plaintext `.content` (no HTML, Markdown, or other forma
13Comments MUST point to the root scope using uppercase tag names (e.g. `K`, `E`, `A` or `I`) 13Comments MUST point to the root scope using uppercase tag names (e.g. `K`, `E`, `A` or `I`)
14and MUST point to the parent item with lowercase ones (e.g. `k`, `e`, `a` or `i`). 14and MUST point to the parent item with lowercase ones (e.g. `k`, `e`, `a` or `i`).
15 15
16```js 16```jsonc
17{ 17{
18 kind: 1111, 18 kind: 1111,
19 content: '<comment>', 19 content: '<comment>',
@@ -56,7 +56,7 @@ If the parent item is an event, a `p` tag set to the parent event's author SHOUL
56 56
57A comment on a blog post looks like this: 57A comment on a blog post looks like this:
58 58
59```js 59```jsonc
60{ 60{
61 kind: 1111, 61 kind: 1111,
62 content: 'Great blog post!', 62 content: 'Great blog post!',
@@ -79,7 +79,7 @@ A comment on a blog post looks like this:
79 79
80A comment on a [NIP-94](94.md) file looks like this: 80A comment on a [NIP-94](94.md) file looks like this:
81 81
82```js 82```jsonc
83{ 83{
84 kind: 1111, 84 kind: 1111,
85 content: 'Great file!', 85 content: 'Great file!',
@@ -100,7 +100,7 @@ A comment on a [NIP-94](94.md) file looks like this:
100 100
101A reply to a comment looks like this: 101A reply to a comment looks like this:
102 102
103```js 103```jsonc
104{ 104{
105 kind: 1111, 105 kind: 1111,
106 content: 'This is a reply to "Great file!"', 106 content: 'This is a reply to "Great file!"',
@@ -121,7 +121,7 @@ A reply to a comment looks like this:
121 121
122A comment on a website's url looks like this: 122A comment on a website's url looks like this:
123 123
124```js 124```jsonc
125{ 125{
126 kind: 1111, 126 kind: 1111,
127 content: 'Nice article!', 127 content: 'Nice article!',
@@ -142,7 +142,7 @@ A comment on a website's url looks like this:
142 142
143A podcast comment example: 143A podcast comment example:
144 144
145```js 145```jsonc
146{ 146{
147 id: "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05", 147 id: "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05",
148 pubkey: "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111", 148 pubkey: "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111",
@@ -164,7 +164,7 @@ A podcast comment example:
164 164
165A reply to a podcast comment: 165A reply to a podcast comment:
166 166
167```js 167```jsonc
168{ 168{
169 kind: 1111, 169 kind: 1111,
170 content: "I'm replying to the above comment.", 170 content: "I'm replying to the above comment.",
diff --git a/29.md b/29.md
index f0ba8ab..a116433 100644
--- a/29.md
+++ b/29.md
@@ -141,7 +141,7 @@ These are events expected to be sent by the relay master key or by group admins
141 141
142Clients can send these events to a relay in order to accomplish a moderation action. Relays must check if the pubkey sending the event is capable of performing the given action based on its role and the relay's internal policy (see also the description of `kind:39003`). 142Clients can send these events to a relay in order to accomplish a moderation action. Relays must check if the pubkey sending the event is capable of performing the given action based on its role and the relay's internal policy (see also the description of `kind:39003`).
143 143
144```json 144```jsonc
145{ 145{
146 "kind": 90xx, 146 "kind": 90xx,
147 "content": "optional reason", 147 "content": "optional reason",
diff --git a/46.md b/46.md
index 60850aa..ce6764d 100644
--- a/46.md
+++ b/46.md
@@ -58,7 +58,7 @@ _user_ passes this token to _remote-signer_, which then sends `connect` *respons
58 58
59## Request Events `kind: 24133` 59## Request Events `kind: 24133`
60 60
61```js 61```jsonc
62{ 62{
63 "kind": 24133, 63 "kind": 24133,
64 "pubkey": <local_keypair_pubkey>, 64 "pubkey": <local_keypair_pubkey>,
@@ -136,7 +136,7 @@ The `content` field is a JSON-RPC-like message that is [NIP-04](04.md) encrypted
136 136
137### Signature request 137### Signature request
138 138
139```js 139```jsonc
140{ 140{
141 "kind": 24133, 141 "kind": 24133,
142 "pubkey": "eff37350d839ce3707332348af4549a96051bd695d3223af4aabce4993531d86", 142 "pubkey": "eff37350d839ce3707332348af4549a96051bd695d3223af4aabce4993531d86",
@@ -156,7 +156,7 @@ The `content` field is a JSON-RPC-like message that is [NIP-04](04.md) encrypted
156 156
157### Response event 157### Response event
158 158
159```js 159```jsonc
160{ 160{
161 "kind": 24133, 161 "kind": 24133,
162 "pubkey": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52", 162 "pubkey": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52",
@@ -196,7 +196,7 @@ _client_ should display (in a popup or new tab) the URL from the `error` field a
196### Announcing _remote-signer_ metadata 196### Announcing _remote-signer_ metadata
197 197
198_remote-signer_ MAY publish it's metadata by using [NIP-05](05.md) and [NIP-89](89.md). With NIP-05, a request to `<remote-signer>/.well-known/nostr.json?name=_` MAY return this: 198_remote-signer_ MAY publish it's metadata by using [NIP-05](05.md) and [NIP-89](89.md). With NIP-05, a request to `<remote-signer>/.well-known/nostr.json?name=_` MAY return this:
199``` 199```jsonc
200{ 200{
201 "names":{ 201 "names":{
202 "_": <remote-signer-app-pubkey>, 202 "_": <remote-signer-app-pubkey>,
diff --git a/96.md b/96.md
index 05c1b18..3828e76 100644
--- a/96.md
+++ b/96.md
@@ -323,8 +323,8 @@ Note: HTTP File Storage Server developers may skip this section. This is meant f
323A File Server Preference event is a kind 10096 replaceable event meant to select one or more servers the user wants 323A File Server Preference event is a kind 10096 replaceable event meant to select one or more servers the user wants
324to upload files to. Servers are listed as `server` tags: 324to upload files to. Servers are listed as `server` tags:
325 325
326```json 326```jsonc
327{. 327{
328 "kind": 10096, 328 "kind": 10096,
329 "content": "", 329 "content": "",
330 "tags": [ 330 "tags": [