Updated Whisper Push Notifications (markdown)

Victor Farazdagi 2017-05-03 00:15:05 +03:00
parent e7e202ad89
commit 347c3bb4a6
1 changed files with 2 additions and 0 deletions

@ -28,6 +28,8 @@ The crux here is how to allow `DeviceB` to trigger notifications on `DeviceA`, a
# Communication Protocol
⭐️ ⭐️ ⭐️ The code below is **outdated** (it was written for Geth 1.5.9, and with Geth 1.6.0 Whisper API changed drastically). It is still advised to skim over the code and comments, to get better understanding of the idea. And at the end of this document, we include full-fledged test suite (to be run with [Mocha](https://mochajs.org/)).
Suppose, you started service node(s) using `statusd --datadir wnode1 wnode --notify --identity ./wnodekey --firebaseauth ./firebaseuathkey`, where `wnodekey` and `firebaseauthkey` files contain node's private key and FCM authorization key respectively. Now, your server is ready to receive requests encrypted with its PubKey, which for our cluster is `0x040edb0d71a3dbe928e154fcb696ffbda359b153a90efc2b46f0043ce9f5dbe55b77b9328fd841a1db5273758624afadd5b39638d4c35b36b3a96e1a586c1b4c2a`.
On client side, we need to use protocol PubKey and pre-defined topic: