Type Alias tor_netdoc::doc::netstatus::UnvalidatedNsConsensus
source · pub type UnvalidatedNsConsensus = UnvalidatedConsensus<NsConsensusRouterStatus>;
Available on crate feature
ns_consensus
only.Expand description
An NsConsensus that has been parsed and checked for timeliness, but not for signatures.
Aliased Type§
struct UnvalidatedNsConsensus {
pub consensus: Consensus<NsConsensusRouterStatus>,
pub siggroup: SignatureGroup,
pub n_authorities: Option<u16>,
}
Fields§
§consensus: Consensus<NsConsensusRouterStatus>
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.
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
.