Type Alias tor_netdoc::doc::netstatus::UnvalidatedMdConsensus

source ·
pub type UnvalidatedMdConsensus = UnvalidatedConsensus<MdConsensusRouterStatus>;
Expand description

An MdConsensus that has been parsed and checked for timeliness, but not for signatures.

Aliased Type§

struct UnvalidatedMdConsensus {
    pub consensus: Consensus<MdConsensusRouterStatus>,
    pub siggroup: SignatureGroup,
    pub n_authorities: Option<u16>,
}

Fields§

§consensus: Consensus<MdConsensusRouterStatus>
Available on crate feature dangerous-expose-struct-fields only.

The consensus object. We don’t want to expose this until it’s validated.

§siggroup: SignatureGroup
Available on crate feature dangerous-expose-struct-fields only.

The signatures that need to be validated before we can call this consensus valid.

§n_authorities: Option<u16>
Available on crate feature dangerous-expose-struct-fields only.

The total number of authorities that we believe in. We need this information in order to validate the signatures, since it determines how many signatures we need to find valid in siggroup.