pub struct HiddenServiceDescriptorV3 {
pub raw_contents: Vec<u8>,
pub unrecognized_lines: Vec<String>,
pub version: Option<u32>,
pub lifetime: Option<u32>,
pub signing_cert: Option<Ed25519Certificate>,
pub revision_counter: Option<u64>,
pub superencrypted: Option<String>,
pub signature: Option<String>,
}Fields§
§raw_contents: Vec<u8>§unrecognized_lines: Vec<String>§version: Option<u32>§lifetime: Option<u32>§signing_cert: Option<Ed25519Certificate>§revision_counter: Option<u64>§superencrypted: Option<String>§signature: Option<String>Implementations§
Source§impl HiddenServiceDescriptorV3
impl HiddenServiceDescriptorV3
pub fn parse(content: &[u8], validate: bool) -> Result<Self>
pub fn verify_signing_certificate(&self) -> Result<()>
pub fn verify_blinded_key( &self, onion_address: &str, time: DateTime<Utc>, period_length: u64, ) -> Result<()>
pub fn decrypt(&self, onion_address: &str) -> Result<InnerLayer>
pub fn decrypt_with_client_auth( &self, onion_address: &str, client_private_key: &[u8; 32], ) -> Result<InnerLayer>
pub fn content( attributes: &Attributes, exclude: &[&str], options: HiddenServiceV3Options, ) -> Result<Vec<u8>>
pub fn create( attributes: &Attributes, exclude: &[&str], validate: bool, options: HiddenServiceV3Options, ) -> Result<Self>
pub fn parse_many(content: &[u8], validate: bool) -> Result<Vec<Self>>
Trait Implementations§
Source§impl Clone for HiddenServiceDescriptorV3
impl Clone for HiddenServiceDescriptorV3
Source§impl Debug for HiddenServiceDescriptorV3
impl Debug for HiddenServiceDescriptorV3
impl StructuralPartialEq for HiddenServiceDescriptorV3
Auto Trait Implementations§
impl Freeze for HiddenServiceDescriptorV3
impl RefUnwindSafe for HiddenServiceDescriptorV3
impl Send for HiddenServiceDescriptorV3
impl Sync for HiddenServiceDescriptorV3
impl Unpin for HiddenServiceDescriptorV3
impl UnsafeUnpin for HiddenServiceDescriptorV3
impl UnwindSafe for HiddenServiceDescriptorV3
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