From a49a09f94b6b9754e322f2f29a4abf9ae1be106c Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 14 Jan 2014 14:20:42 -0500 Subject: Onion data packets can now be handled in onion_client. oniondata_registerhandler(...) can be used to register different packet types to handle them and send_onion_data(...) can be used to send these packets. --- docs/Prevent_Tracking.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/Prevent_Tracking.txt') diff --git a/docs/Prevent_Tracking.txt b/docs/Prevent_Tracking.txt index b44c4cf7..5f7aaf1e 100644 --- a/docs/Prevent_Tracking.txt +++ b/docs/Prevent_Tracking.txt @@ -108,6 +108,9 @@ data to route request packet: encrypted with that temporary private key and the nonce and the real public key of the destination node:[data] (if Node D contains the ret data for the node, it sends the stuff in this packet as a data to route response packet to the right node) +The data in the previous packet is in format: [real public key of sender] +encrypted with real private key of the sender, the nonce in the data packet and the real public key of the reciever:[[uint8_t id][data (optional)]] + Data sent to us: announce response packet: [uint8_t packet id (132)][data to send back in response(fixed size)][nonce] @@ -117,6 +120,8 @@ encrypted with the DHT private key of Node D, the public key in the request and data to route response packet: [uint8_t packet id (134)][nonce][temporary just generated public key] encrypted with that temporary private key and the nonce and the real public key of the destination node:[data] + + Onion packet (response): initial (sent from node D to node C): -- cgit v1.2.3