Struct tor_netdoc::doc::hsdesc::HsDesc
source · pub struct HsDesc { /* private fields */ }Available on crate feature
onion-common only.Expand description
A decrypted, decoded onion service descriptor.
This object includes information from both the outer (plaintext) layer of the descriptor, and the inner (encrypted) layers. 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: &BlindedOnionId
) -> Result<UncheckedEncryptedHsDesc>
pub fn parse(
input: &str,
blinded_onion_id: &BlindedOnionId
) -> Result<UncheckedEncryptedHsDesc>
Parse the outermost layer 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.