Update 704.md

This commit is contained in:
Vlad Stan 2023-04-10 16:59:04 +03:00 committed by GitHub
parent 84db35b8c3
commit 6510a69843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
704.md
View File

@ -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.