get_authorities

Function get_authorities 

Source
pub fn get_authorities() -> Vec<DirectoryAuthority>
Expand description

Returns the list of known directory authorities.

These are the trusted servers that vote on the Tor network consensus. The list is hardcoded and matches the authorities configured in the official Tor client.

§Returns

A vector of DirectoryAuthority structs for all known authorities.

§Note

Some authorities (like “tor26”) intentionally throttle their DirPort to discourage abuse. The download functions automatically skip these when using default endpoints.

§Example

use stem_rs::descriptor::remote::get_authorities;

let authorities = get_authorities();
println!("Known authorities: {}", authorities.len());

for auth in &authorities {
    println!("  {} - {}", auth.nickname, auth.fingerprint);
}