upleb.uk

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

summaryrefslogtreecommitdiff
path: root/89.md
diff options
context:
space:
mode:
authorJon Staab <shtaab@gmail.com>2023-11-16 05:43:28 -0800
committerJon Staab <shtaab@gmail.com>2023-11-16 05:43:28 -0800
commit7f27800e27c437ce17d223799f37631105d1ae5f (patch)
tree3da010efef5faf526e19165f25b8449c67651697 /89.md
parentb6c7a255102a65c4978b465a85f124e910e82a2d (diff)
Add client tag to nip 89
Diffstat (limited to '89.md')
-rw-r--r--89.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/89.md b/89.md
index 4503ecf..04f1917 100644
--- a/89.md
+++ b/89.md
@@ -74,6 +74,19 @@ Multiple tags might be registered by the app, following NIP-19 nomenclature as t
74 74
75A tag without a second value in the array SHOULD be considered a generic handler for any NIP-19 entity that is not handled by a different tag. 75A tag without a second value in the array SHOULD be considered a generic handler for any NIP-19 entity that is not handled by a different tag.
76 76
77# Client tag
78When publishing events, clients MAY include a `client` tag in the same format as the recommendation event's `a` tags. This has privacy implications for users, so clients SHOULD allow users to opt-out of using this tag.
79
80```json
81{
82 "kind": 1,
83 "tags": [
84 ["client", "31990:app1-pubkey:<d-identifier>", "wss://relay1", "ios"]
85 ]
86 ...
87}
88```
89
77# User flow 90# User flow
78A user A who uses a non-`kind:1`-centric nostr app could choose to announce/recommend a certain kind-handler application. 91A user A who uses a non-`kind:1`-centric nostr app could choose to announce/recommend a certain kind-handler application.
79 92
@@ -113,4 +126,4 @@ User B's client sees the application's `kind:31990` which includes the informati
113## Alternative query bypassing `kind:31989` 126## Alternative query bypassing `kind:31989`
114Alternatively, users might choose to query directly for `kind:31990` for an event kind. Clients SHOULD be careful doing this and use spam-prevention mechanisms to avoid directing users to malicious handlers. 127Alternatively, users might choose to query directly for `kind:31990` for an event kind. Clients SHOULD be careful doing this and use spam-prevention mechanisms to avoid directing users to malicious handlers.
115 128
116`["REQ", <id>, '[{ "kinds": [31990], "#k": [<desired-event-kind>], 'authors': [...] }]']` \ No newline at end of file 129`["REQ", <id>, '[{ "kinds": [31990], "#k": [<desired-event-kind>], 'authors': [...] }]']`