Struct tor_netdoc::doc::hsdesc::HsDescBuilder
source · pub struct HsDescBuilder<'a> { /* private fields */ }
hs-common
and hs-service
only.Expand description
Builder for HsDesc
.
Implementations§
source§impl<'a> HsDescBuilder<'a>
impl<'a> HsDescBuilder<'a>
sourcepub fn blinded_id(self, value: &'a HsBlindIdKeypair) -> Self
pub fn blinded_id(self, value: &'a HsBlindIdKeypair) -> Self
The blinded hidden service signing keys used to sign descriptor signing keys (KP_hs_blind_id, KS_hs_blind_id).
sourcepub fn hs_desc_sign(self, value: &'a Keypair) -> Self
pub fn hs_desc_sign(self, value: &'a Keypair) -> Self
The short-term descriptor signing key (KP_hs_desc_sign, KS_hs_desc_sign).
sourcepub fn hs_desc_sign_cert_expiry(self, value: SystemTime) -> Self
pub fn hs_desc_sign_cert_expiry(self, value: SystemTime) -> Self
The expiration time of the descriptor signing key certificate.
sourcepub fn create2_formats(self, value: &'a [u32]) -> Self
pub fn create2_formats(self, value: &'a [u32]) -> Self
A list of recognized CREATE handshakes that this onion service supports.
sourcepub fn auth_required(self, value: Option<SmallVec<[IntroAuthType; 2]>>) -> Self
pub fn auth_required(self, value: Option<SmallVec<[IntroAuthType; 2]>>) -> Self
A list of authentication types that this onion service supports.
sourcepub fn is_single_onion_service(self, value: bool) -> Self
pub fn is_single_onion_service(self, value: bool) -> Self
If true, this a “single onion service” and is not trying to keep its own location private.
sourcepub fn intro_points(self, value: &'a [IntroPointDesc]) -> Self
pub fn intro_points(self, value: &'a [IntroPointDesc]) -> Self
One or more introduction points used to contact the onion service.
sourcepub fn intro_auth_key_cert_expiry(self, value: SystemTime) -> Self
pub fn intro_auth_key_cert_expiry(self, value: SystemTime) -> Self
The expiration time of an introduction point authentication key certificate.
sourcepub fn intro_enc_key_cert_expiry(self, value: SystemTime) -> Self
pub fn intro_enc_key_cert_expiry(self, value: SystemTime) -> Self
The expiration time of an introduction point encryption key certificate.
sourcepub fn auth_clients(self, value: &'a [PublicKey]) -> Self
pub fn auth_clients(self, value: &'a [PublicKey]) -> Self
The list of clients authorized to access the hidden service. If empty, client authentication is disabled.
If client authorization is disabled, the resulting middle document will contain a single
auth-client
line populated with random values.
sourcepub fn lifetime(self, value: IntegerMinutes<u16>) -> Self
pub fn lifetime(self, value: IntegerMinutes<u16>) -> Self
The lifetime of this descriptor, in minutes.
This doesn’t actually list the starting time or the end time for the descriptor: presumably, because we didn’t want to leak the onion service’s view of the wallclock.
sourcepub fn revision_counter(self, value: RevisionCounter) -> Self
pub fn revision_counter(self, value: RevisionCounter) -> Self
A revision counter to tell whether this descriptor is more or less recent than another one for the same blinded ID.
sourcepub fn subcredential(self, value: Subcredential) -> Self
pub fn subcredential(self, value: Subcredential) -> Self
The “subcredential” of the onion service.
Trait Implementations§
source§impl<'a> Clone for HsDescBuilder<'a>
impl<'a> Clone for HsDescBuilder<'a>
source§fn clone(&self) -> HsDescBuilder<'a>
fn clone(&self) -> HsDescBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more