Struct tor_netdoc::doc::hsdesc::IntroPointDescBuilder
source · pub struct IntroPointDescBuilder { /* private fields */ }
hs-common
only.Expand description
Builder for IntroPointDesc
.
Implementations§
source§impl IntroPointDescBuilder
impl IntroPointDescBuilder
sourcepub fn link_specifiers(self, value: Vec<EncodedLinkSpec>) -> Self
pub fn link_specifiers(self, value: Vec<EncodedLinkSpec>) -> Self
The list of link specifiers needed to extend a circuit to the introduction point.
These can include public keys and network addresses.
Note that we do not enforce the presence of any link specifiers here;
this means that you can’t assume that an IntroPointDesc
is a meaningful
ChanTarget
without some processing.
sourcepub fn ipt_kp_ntor(self, value: PublicKey) -> Self
pub fn ipt_kp_ntor(self, value: PublicKey) -> Self
The key to be used to extend a circuit to the introduction point, using the
ntor or ntor3 handshakes. (KP_ntor
)
sourcepub fn kp_hs_ipt_sid(self, value: HsIntroPtSessionIdKey) -> Self
pub fn kp_hs_ipt_sid(self, value: HsIntroPtSessionIdKey) -> Self
The key to be used to identify the onion service at this introduction point.
(KP_hs_ipt_sid
)
sourcepub fn kp_hss_ntor(self, value: HsSvcNtorKey) -> Self
pub fn kp_hss_ntor(self, value: HsSvcNtorKey) -> Self
KP_hss_ntor
, the key used to encrypt a handshake to the onion
service when using this introduction point.
The onion service uses a separate key of this type with each introduction point as part of its strategy for preventing replay attacks.