Struct tor_netdoc::doc::netstatus::UnvalidatedConsensus
source · [−]pub struct UnvalidatedConsensus<RS> { /* private fields */ }
Expand description
A Microdesc consensus whose signatures have not yet been checked.
To validate this object, call set_n_authorities() on it, then call check_signature() on that result with the set of certs that you have. Make sure only to provide authority certificates representing real authorities!
Implementations
Tell the unvalidated consensus how many authorities we believe in.
Without knowing this number, we can’t validate the signature.
Return an iterator of all the certificate IDs that we might use to validate this consensus.
Return the lifetime of this unvalidated consensus
Return true if a client who believes in exactly the provided set of authority IDs might might consider this consensus to be well-signed.
(This is the case if the consensus claims to be signed by more than half of the authorities in the list.)
Trait Implementations
type KeyHint = Vec<AuthCertKeyIds>
type KeyHint = Vec<AuthCertKeyIds>
A type that describes what keys are missing for this object.
Check whether k is the right key for this object. If not, return an error describing what key would be right. Read more
Check the signature on this object
Unwrap this object without checking any signatures on it.
Unwrap this object if it’s correctly signed by a provided key.
Auto Trait Implementations
impl<RS> RefUnwindSafe for UnvalidatedConsensus<RS> where
RS: RefUnwindSafe,
impl<RS> Send for UnvalidatedConsensus<RS> where
RS: Send,
impl<RS> Sync for UnvalidatedConsensus<RS> where
RS: Sync,
impl<RS> Unpin for UnvalidatedConsensus<RS> where
RS: Unpin,
impl<RS> UnwindSafe for UnvalidatedConsensus<RS> where
RS: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more