blob: 4ccd0af37933c5bc7e817ffde09afbcc0a70a15a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//! Facilities to construct Consensus objects.
//!
//! (These are only for testing right now, since we don't yet
//! support signing or encoding.)
use super::{
ConsensusFlavor, ConsensusVoterInfo, DirSource, Footer, Lifetime, NetParams, ProtoStatus,
ProtoStatuses, SharedRandStatus, SharedRandVal,
};
use crate::types::Iso8601TimeNoSp;
use crate::{BuildError as Error, BuildResult as Result};
use tor_llcrypto::pk::rsa::RsaIdentity;
use tor_protover::Protocols;
use std::net::IpAddr;
use std::sync::Arc;
use std::time::SystemTime;
pub(crate) mod md;
#[cfg(feature = "plain-consensus")]
pub(crate) mod plain;
ns_export_each_flavor! {
ty: ConsensusBuilder;
}
|