Struct tor_netdoc::doc::hsdesc::HsDesc
source · pub struct HsDesc { /* private fields */ }
Available on crate feature
hs-common
only.Expand description
A decrypted, decoded onion service descriptor.
This object includes information from both the outer (plaintext) document of the descriptor, and the inner (encrypted) documents. It tells the client the information it needs to contact the onion service, including necessary introduction points and public keys.
Implementations§
source§impl HsDesc
impl HsDesc
sourcepub fn parse(
input: &str,
blinded_onion_id: &HsBlindId
) -> Result<UncheckedEncryptedHsDesc>
pub fn parse( input: &str, blinded_onion_id: &HsBlindId ) -> Result<UncheckedEncryptedHsDesc>
Parse the outermost document of the descriptor in input
, and validate
that its identity is consistent with blinded_onion_id
.
On success, the caller will get a wrapped object which they must validate and then decrypt.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HsDesc
impl Send for HsDesc
impl Sync for HsDesc
impl Unpin for HsDesc
impl UnwindSafe for HsDesc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more