[tor-bugs] #8323 [Tor]: Missing 'GETINFO md/all'

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Feb 25 15:56:58 UTC 2013


#8323: Missing 'GETINFO md/all'
------------------------+---------------------------------------------------
 Reporter:  atagar      |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  major       |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor         |        Version:                    
 Keywords:  tor-client  |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by atagar):

 > I'm assuming it's not a problem for you that microdescriptors don't tell
 you which microdescriptor they are unless you compute their SHA256
 themselves?

 It's not ideal. I was a bit sad yesterday when I realized that they lack
 the fingerprint since it changes simple tasks like 'tell me all of the
 exits' from...

 {{{
 for desc in controller.get_microdescriptors():
   if desc.exit_policy.is_exiting_allowed():
     print "%s is an exit" % desc.fingerprint
 }}}

 ... to...

 {{{
 exit_onion_keys = set()

 for desc in controller.get_microdescriptors():
   if desc.exit_policy.is_exiting_allowed():
     exit_onion_keys.add(desc.onion_key)

 for desc in controller.get_network_statuses():
   if desc.digest in exit_onion_keys:
     print "%s is an exit" % desc.fingerprint
 }}}

 But not the end of the world. :)

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8323#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list