fix #p filter syntax.

This commit is contained in:
fiatjaf 2022-07-20 21:28:55 -03:00 committed by William Casarin
parent 4620546785
commit 95cec2b8a7

2
21.md
View File

@ -19,7 +19,7 @@ If the signature matches and the event pubkey corresponds to the kind-04 filter
### Example
1. Client connects to `wss://chat.relay.nostr.com/`
2. Client sends `["REQ", "my-dms", {"kinds": [4], "#p": "aeae"}, {"kinds": [4],"authors": ["aeae"]}]`
2. Client sends `["REQ", "my-dms", {"kinds": [4], "#p": ["aeae"]}, {"kinds": [4],"authors": ["aeae"]}]`
3. Relay sends `["CHALLENGE", "supertactic"]`
4. Client sends `["EVENT", {"id": "...", "pubkey": "aeae", "sig": "...", "kind": 20001, "tags": [], "created_at": 1609470000, "content": "chat.relay.nostr.com challenge for my-dms: supertactic"}]`
5. Relay sends `["EVENT", "my-dms", {"id": "...", "pubkey": "aeae", "kind": 4, "content": "<encrypted>", "sig": "...", "tags": ["p", "786b..."]}]`