status-go/t
Andrea Maria Piana cef7f367ab Add topic negotiation
This commit add topic negotiation to the protocol.

On receiving a message from a client with version >= 1, we will generate
a shared key using Diffie-Hellman. We will record also which
installationID has sent us a message.

This key will be passed back to the above layer, which will then use to
start listening to a whisper topic (the `chat` namespace has no
knowledge of whisper).

When sending a message to a set of InstallationIDs, we check whether we
have agreed on a topic with all of them, and if so, we will send on this
separate topic, otherwise we fallback on discovery.

This change is backward compatible, as long as there is no downgrade of
the app on the other side.

A few changes:

* Factored out the DB in a separate namespace as now it is
being used by multiple services (TopicService and EncryptionService).

* Factored out multidevice management in a separate namespace

* Moved all the test to test the whole protoocl rather than just the encryption service

* Moved all the filter management in status-go
2019-06-19 17:38:45 +02:00
..
benchmarks Gomobile support (#1164) 2019-02-01 18:02:52 +01:00
config Unlock wallet and chat keys (#1346) 2019-01-18 10:01:14 +01:00
devtests Download transfers starting from latest block header (#1467) 2019-06-14 13:16:30 +03:00
e2e Re-send user payload if previously sent envelope wasn't acknowledged (#1386) 2019-03-01 14:36:21 +01:00
helpers Upgrade geth 1.8.17 plus add metrics during compilation time (#1273) 2018-11-14 08:03:58 +01:00
utils migrate to go 1.12 and go modules 2019-06-12 13:12:00 +02:00
bindata.go Add topic negotiation 2019-06-19 17:38:45 +02:00
doc.go migrate to go 1.12 and go modules 2019-06-12 13:12:00 +02:00