<div dir="ltr"><div>A Tor client generates the desc_id for the v2 hidden service it would like to query. It did selects the 3 HSDIR from the router list which are found directly after the position of the desc_id when the routers are sorted by their identity digest (hash of their onion public key). I took me quite a while to figure out exactly how this works from the relatively sparse info in the rend-spec.txt.<br>
<br></div>I just put up a Gist with the python implementation of desc_id calculation. It should be pretty straightforward using STEM to sort list of OR's with the HsDir flag by identity_digest and determine which 6 are responsible at the current time.<br>
<br><a href="https://gist.github.com/DonnchaC/5451637">https://gist.github.com/DonnchaC/5451637</a><br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 24, 2013 at 11:23 AM, Frank Young <span dir="ltr"><<a href="mailto:pfcodes@gmail.com" target="_blank">pfcodes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dealing with v2 hidden service descriptors, how does a tor client get<br>
the list of HSDIR are responsible for a certain onion address so it<br>
can contact them for descriptor of the hidden service?.<br>
<br>
According to rend-spec.txt the list of the responsible HSDIR for a<br>
particular hidden service changes almost in every 24.<br>
_______________________________________________<br>
tor-dev mailing list<br>
<a href="mailto:tor-dev@lists.torproject.org">tor-dev@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev</a><br>
</blockquote></div><br></div>