scherzma / Skunk

P2P Tor Chat App
GNU General Public License v3.0
4 stars 0 forks source link

Design data synchronisation in the P2P network #18

Closed scherzma closed 3 months ago

scherzma commented 6 months ago

The communication between two peers is designed and implemented, so this issue focuses on communication between three or more peers.

Challenges & Solutions:

Synchronization

Issue: Deliver messages to offline peers upon return. Solution: Implement message queues for consistency and timestamp-based syncing (maybe with vector clock?).

Security

Issue: Verify sender authenticity. Solution: Use end-to-end encryption with public key signatures.

Efficiency

Issue: Reduce overhead in peer updates (O(M×H) complexity). Solution: Use differential sync with hash comparisons for sending only new messages. (Gossip protocol?)

Next Steps:

Draft technical design with algorithms and protocols. Develop and test a prototype.