diff options
author | irungentoo <irungentoo@gmail.com> | 2014-01-14 14:20:42 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-01-14 14:20:42 -0500 |
commit | a49a09f94b6b9754e322f2f29a4abf9ae1be106c (patch) | |
tree | 9523220b5ed6260055fd6a2191122f8c0880172f /docs | |
parent | 878762a8e4ec6873daa29bcf32a9416844943ae2 (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.txt | 5 |
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: | |||
108 | encrypted with that temporary private key and the nonce and the real public key of the destination node:[data] | 108 | encrypted 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 | ||
111 | The data in the previous packet is in format: [real public key of sender] | ||
112 | 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)]] | ||
113 | |||
111 | Data sent to us: | 114 | Data sent to us: |
112 | announce response packet: | 115 | announce 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 | |||
117 | data to route response packet: | 120 | data 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] |
119 | encrypted with that temporary private key and the nonce and the real public key of the destination node:[data] | 122 | encrypted with that temporary private key and the nonce and the real public key of the destination node:[data] |
123 | |||
124 | |||
120 | Onion packet (response): | 125 | Onion packet (response): |
121 | 126 | ||
122 | initial (sent from node D to node C): | 127 | initial (sent from node D to node C): |