status-protocol-go/v1
Andrea Maria Piana db4b2126d0 [Parts of #7] Wrap & signs messages if specified in config
Currently datasync propagates the unencrypted messages. This messages
might be relayed to a third party. We can't therefore rely on whisper
signature, as the author might not be the same as the relayer.

This commit wraps our current message in a protobuf record with an
optional signature.

If the signature is present it will be used to indicate the author of
the message, otherwise whisper is used.

It's not enabled by default as this is a breaking change and should go
live with v1. Decoding is backward compatible, so old messages will
still be read.

I have also changed the messageID scheme to use:
compressedBytesOfPk + Keccak256 of the encoded unencrypted payload, instead of the whisper ID.
2019-07-21 07:41:38 +02:00
..
clock.go move code from status-go and status-console-client 2019-07-08 11:21:21 +02:00
clock_test.go move code from status-go and status-console-client 2019-07-08 11:21:21 +02:00
decoder.go Refactor the library (#20) 2019-07-16 12:43:07 +02:00
encoder.go Refactor the library (#20) 2019-07-16 12:43:07 +02:00
message.go [Parts of #7] Wrap & signs messages if specified in config 2019-07-21 07:41:38 +02:00
message.pb.go [Parts of #7] Wrap & signs messages if specified in config 2019-07-21 07:41:38 +02:00
message.proto [Parts of #7] Wrap & signs messages if specified in config 2019-07-21 07:41:38 +02:00
message_test.go [Parts of #7] Wrap & signs messages if specified in config 2019-07-21 07:41:38 +02:00
pair_message.go Refactor the library (#20) 2019-07-16 12:43:07 +02:00
pair_message_test.go [Parts of #7] Wrap & signs messages if specified in config 2019-07-21 07:41:38 +02:00