Skip to main content

RouterMd

Type Alias RouterMd 

Source
pub type RouterMd = MdRouterStatus;
Expand description

The real router status entry type.

Aliased Type§

pub struct RouterMd {
    pub r: RouterStatusIntroItem,
    pub m: FixedB64<32>,
    pub a: Vec<SocketAddr>,
    pub flags: DocRelayFlags,
    pub version: Option<SoftwareVersion>,
    pub protos: Protocols,
    pub weight: RelayWeightsItem,
    pub port_policy: NotPresent,
    pub ed25519_id: NotPresent,
    pub stats: NotPresent,
}

Fields§

§r: RouterStatusIntroItem

r — Introduce a routerstatus entry

https://spec.torproject.org/dir-spec/consensus-formats.html#item:r (and, the md version, which is different).

§m: FixedB64<32>

m — Microdescriptor or document digest

In an md consensus, the hash of the document for this relay. In a vote, microdescriptor hashes for the various consensus methods.

https://spec.torproject.org/dir-spec/computing-consensus.html#flavor:microdesc r item.

§a: Vec<SocketAddr>

a — Further router address(es) (IPv6)

https://spec.torproject.org/dir-spec/consensus-formats.html#item:a (and, the md version, which is different).

§flags: DocRelayFlags§version: Option<SoftwareVersion>§protos: Protocols§weight: RelayWeightsItem§port_policy: NotPresent

p — Exit ports summary

https://spec.torproject.org/dir-spec/consensus-formats.html#item:p

This field is not properly parsed in plain consensuses by the old parser.

§ed25519_id: NotPresent§stats: NotPresent