mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
Update 704.md
This commit is contained in:
parent
84db35b8c3
commit
6510a69843
5
704.md
5
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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user