0

I am coding my own version of TOR and I am trying to set up circuit management. I looked at the TOR spec and it says:

To prevent CircID collisions, when one node sends a CREATE/CREATE2 cell to another, it chooses from only one half of the possible values based on the ORs' public identity keys.

I would like to implement this approach in my code as well, but I don't understand how can the node figure out what values are possible, and determine the CircID, using the OR's identity keys?

I assume there is a way to pass information using identity keys, but I couldn't find any relevant explanation, and checking the TOR-design.html also didn't help.

saarmz
  • 1
  • stackoverflow.com is for Pro Grammer the best solution – djdomi Apr 05 '23 at 16:49
  • @djdomi I think so too but they keep disapproving my question and I'm tired of fighting them. This site should also be good though since my question is about networking – saarmz Apr 06 '23 at 09:35
  • Im sorry about that but I think it depends on how you asked the question. if you have already been done and needs improvement then stackoverflow.com is the right way. but I would like to inform you that this site requires business related environmental question, which mostly Program a programm is not suitable. I searched a bit for you and found https://tor.stackexchange.com/ which is imho what you looking for – djdomi Apr 07 '23 at 08:46
  • @djdomi Thank you very much! I've been trying to ask this for days without success. – saarmz Apr 07 '23 at 13:14
  • The Question has been answered on TOR In reference https://tor.stackexchange.com/questions/23675/how-do-tor-nodes-select-the-circids-when-creating-or-extending-a-circuit – djdomi Apr 09 '23 at 17:03

0 Answers0