diff options
| author | Pablo Fernandez <pfer@me.com> | 2023-11-16 22:03:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-16 22:03:13 +0200 |
| commit | 010b322fa14eba673a1b1e6489f6109507d6df2c (patch) | |
| tree | 8aa1a6ec6d2929f291ce6793b1134306d797ebb5 /89.md | |
| parent | 37f6cbb775126b386414220f783ca0f5f85e7614 (diff) | |
| parent | 7f27800e27c437ce17d223799f37631105d1ae5f (diff) | |
Merge pull request #884 from coracle-social/client-tag
Diffstat (limited to '89.md')
| -rw-r--r-- | 89.md | 15 |
1 files changed, 14 insertions, 1 deletions
| @@ -74,6 +74,19 @@ Multiple tags might be registered by the app, following NIP-19 nomenclature as t | |||
| 74 | 74 | ||
| 75 | A 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. | 75 | A 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 | ||
| 78 | When 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 |
| 78 | A user A who uses a non-`kind:1`-centric nostr app could choose to announce/recommend a certain kind-handler application. | 91 | A 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` |
| 114 | Alternatively, 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. | 127 | Alternatively, 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': [...] }]']` |