alnf / toxcore

The future of online communications.
https://tox.im
GNU General Public License v3.0
7 stars 0 forks source link

Chat history sync #22

Closed alnf closed 9 years ago

alnf commented 9 years ago

Considering signing every message, so peers cannot fake it, when distributing chat history for peers, who've just came online.

aaannndddyyy commented 9 years ago

@alnf: If you throw overboard signing each message, you need not abandon chat sync altogether. You should consider chat history sync as an untrusted service by other peers. They say that what they send you is what was actually said by others. If you do not trust only one peer, sync with two and compare. That should give you a reasonable level of confidence.

aaannndddyyy commented 9 years ago

If group chats are consistent, you can easily hash the received history sync from time A to time B and request from the second peer only the hash of the same time period, in order to compare them. At least, if timestamps are the ones of when the message was sent, and not when it was received.