summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-01-14 14:20:42 -0500
committerirungentoo <irungentoo@gmail.com>2014-01-14 14:20:42 -0500
commita49a09f94b6b9754e322f2f29a4abf9ae1be106c (patch)
tree9523220b5ed6260055fd6a2191122f8c0880172f /docs
parent878762a8e4ec6873daa29bcf32a9416844943ae2 (diff)
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/Prevent_Tracking.txt5
1 files changed, 5 insertions, 0 deletions
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:
108encrypted with that temporary private key and the nonce and the real public key of the destination node:[data] 108encrypted with that temporary private key and the nonce and the real public key of the destination node:[data]
109(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) 109(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)
110 110
111The data in the previous packet is in format: [real public key of sender]
112encrypted 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)]]
113
111Data sent to us: 114Data sent to us:
112announce response packet: 115announce response packet:
113[uint8_t packet id (132)][data to send back in response(fixed size)][nonce] 116[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
117data to route response packet: 120data to route response packet:
118[uint8_t packet id (134)][nonce][temporary just generated public key] 121[uint8_t packet id (134)][nonce][temporary just generated public key]
119encrypted with that temporary private key and the nonce and the real public key of the destination node:[data] 122encrypted with that temporary private key and the nonce and the real public key of the destination node:[data]
123
124
120Onion packet (response): 125Onion packet (response):
121 126
122initial (sent from node D to node C): 127initial (sent from node D to node C):