upleb.uk

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

summaryrefslogtreecommitdiff
path: root/42.md
diff options
context:
space:
mode:
authorkehiy <kehiiiiya@gmail.com>2024-09-03 20:41:31 +0330
committerkehiy <kehiiiiya@gmail.com>2024-09-03 20:41:31 +0330
commite6552476aa2e5ca7256be572a9aa226ec8a022ee (patch)
tree46f14902bd2bfb85e5f3369ece456c46b697b1a2 /42.md
parentb4a2561df7325b8624bc5ffad154ec946ade2f1e (diff)
format(all): json formatting
Diffstat (limited to '42.md')
-rw-r--r--42.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/42.md b/42.md
index 8c70de4..fdc5d10 100644
--- a/42.md
+++ b/42.md
@@ -22,13 +22,13 @@ A relay may want to require clients to authenticate to access restricted resourc
22 22
23This NIP defines a new message, `AUTH`, which relays CAN send when they support authentication and clients can send to relays when they want to authenticate. When sent by relays the message has the following form: 23This NIP defines a new message, `AUTH`, which relays CAN send when they support authentication and clients can send to relays when they want to authenticate. When sent by relays the message has the following form:
24 24
25```json 25```
26["AUTH", <challenge-string>] 26["AUTH", <challenge-string>]
27``` 27```
28 28
29And, when sent by clients, the following form: 29And, when sent by clients, the following form:
30 30
31```json 31```
32["AUTH", <signed-event-json>] 32["AUTH", <signed-event-json>]
33``` 33```
34 34
@@ -38,14 +38,14 @@ And, when sent by clients, the following form:
38 38
39The signed event is an ephemeral event not meant to be published or queried, it must be of `kind: 22242` and it should have at least two tags, one for the relay URL and one for the challenge string as received from the relay. Relays MUST exclude `kind: 22242` events from being broadcasted to any client. `created_at` should be the current time. Example: 39The signed event is an ephemeral event not meant to be published or queried, it must be of `kind: 22242` and it should have at least two tags, one for the relay URL and one for the challenge string as received from the relay. Relays MUST exclude `kind: 22242` events from being broadcasted to any client. `created_at` should be the current time. Example:
40 40
41```json 41```jsonc
42{ 42{
43 "kind": 22242, 43 "kind": 22242,
44 "tags": [ 44 "tags": [
45 ["relay", "wss://relay.example.com/"], 45 ["relay", "wss://relay.example.com/"],
46 ["challenge", "challengestringhere"] 46 ["challenge", "challengestringhere"]
47 ], 47 ],
48 ... 48 // other fields...
49} 49}
50``` 50```
51 51