From 6510a69843505f91362a99880e90dc36772529ac Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Mon, 10 Apr 2023 16:59:04 +0300 Subject: [PATCH] Update 704.md --- 704.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/704.md b/704.md index f4b80649..06c48528 100644 --- a/704.md +++ b/704.md @@ -89,13 +89,14 @@ If `Alice` wants to signal `Bob` that she is ready to use this NIP (for more pri ``` If `Bob` supports this NIP then he must: - - subscribe to events for him: + - subscribe to "init" events for him: ```json { "kind": 35709, "#p": [<32-bytes lowercase hex-encoded public key of Bob>] } ``` - - descrypt the content, + - when an event is received, descrypt the content, verify the `shared_secret_hash` against `Alice's` public key + - decide if it wants to communicate with `Alice`. If yes it should publish its own `kind:35709` for `Alice` After both `Alice` and `Bob` have published the `kind: 35709` event, they can start to publish and listen to events using the `one-use-only` keys.