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.