mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-14 03:16:22 +00:00
fix missing ellipsis in pubkey in filter example.
This commit is contained in:
parent
3ba2446859
commit
3962150f3f
6
21.md
6
21.md
@ -19,11 +19,11 @@ 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"}]`
|
||||
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..."]}]`
|
||||
5. Relay sends `["EVENT", "my-dms", {"id": "...", "pubkey": "786b", "kind": 4, "content": "<encrypted>", "sig": "...", "tags": ["p", "aeae..."]}]`
|
||||
5. Relay sends `["EVENT", "my-dms", {"id": "...", "pubkey": "786b...", "kind": 4, "content": "<encrypted>", "sig": "...", "tags": ["p", "aeae..."]}]`
|
||||
|
||||
Ids and signatures omitted and pubkeys shortened for readability.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user