alnf / toxcore

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

security improvement for announces #21

Open alnf opened 9 years ago

alnf commented 9 years ago
  1. Request_nodes from close dht node, which closest to the chatid (however, we do not inform this node about chatid in any way). Probably, there is already similar function in dht.c
  2. Send announce request to nodes closes to chat id (choose from received nodes). However, we encrypt packet with our peerid in the chat, not dhtid. Most probably those nodes do not have us in dht list -> don't have our ip, so they will get packet from unknown ip with unknown pk.
  3. Relay
  4. Relay
  5. Store