upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2022-07-21 06:41:09 -0300
committerWilliam Casarin <jb55@jb55.com>2022-08-03 12:56:51 -0700
commitc505dcc910ffc0efe15b4401791ece4dc297eb8a (patch)
tree15d38b8f5668f659c833e4a39c58728c95ef2e0d
parent3962150f3f00f6e7669e582529e2cac3ceace10d (diff)
add clarifications with further details.
-rw-r--r--21.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/21.md b/21.md
index e160706..0559007 100644
--- a/21.md
+++ b/21.md
@@ -27,6 +27,22 @@ If the signature matches and the event pubkey corresponds to the kind-04 filter
27 27
28Ids and signatures omitted and pubkeys shortened for readability. 28Ids and signatures omitted and pubkeys shortened for readability.
29 29
30### Clarifications
31
32- What happens if the client asks for other stuff at the same time? So for example if you request for mutiple keys do you get mutiple challenges, if you ask for other event kinds as same time do they just come back as normal separately?[^q1]
33
34 Relays MUST send a single challenge message and clients are expected to send a single challenge response back. If the client for any reason has more than one identity it should use two different subscriptions.
35
36 If the filter has other clauses and is requesting other events (non kind-4) the relay SHOULD return these other events as always, and just leave out the kind-4 ones for after the challenge is completed.
37
38 Clients MUST send kind-4 requests for a single pubkey (for each subscription), therefore relays SHOULD ignore subscription requests for kind-4 that define multiple pubkeys or no pubkeys at all.
39
40- What if a client wants to grab only direct messages between two parties, for example with a filter like `{"kinds": [4], "authors": ["d3d3..."], "#e": ["8d8d..."]}`?
41
42 In this case relays SHOULD check that there is only one pubkey in either `"authors"` and `"#e"` and accept any of those as the challenge response.
43
44[^q1]: https://t.me/nostr_protocol/26059
45
30Rationale 46Rationale
31--------- 47---------
32 48