Updated Whisper Push Notifications (markdown)

Victor Farazdagi 2017-04-11 04:16:36 +03:00
parent 6c9265172f
commit 8f0c032b30
1 changed files with 1 additions and 1 deletions

@ -18,7 +18,7 @@ The crux here is how to allow `DeviceB` to trigger notifications on `DeviceA`, a
- on `DeviceA` you send encrypted message to `DeviceB` (so, only `DeviceB` can open envelope)
- once done, you need to send a broadcast message encrypting it with `Chat SymKey`
- some node over there, will be able to decrypt your broadcast (the only one that has SymKey)
- once decrypted, wnode will go over list of device ids (that were previously registered with given Chat SymKey) and send to notifications to them (only to one for one-on-one chats, `n-1` notification requests on group of `n` chats - that's we do not notify ourselfves)
- once decrypted, wnode will go over list of device ids (that were previously registered with given Chat SymKey) and send notifications requests to FCM on behalf of them to them (only 1 request for one-on-one chats, `n-1` requests for group of `n` chats - that's we do not notify ourselves)
- So, messages are never exposed, and they are routed in parallel. Notifications are also encrypted (by Chat SymKey), so are not exposed to eavesdropper. So, we are not compromising darkness. What gets exposed? Well, by registering device id's with a given chat session we expose it to `wnode`.