pub struct IntroductionPointV3 {
pub link_specifiers: Vec<LinkSpecifier>,
pub onion_key_raw: Option<String>,
pub auth_key_cert: Ed25519Certificate,
pub enc_key_raw: Option<String>,
pub enc_key_cert: Ed25519Certificate,
pub legacy_key_raw: Option<String>,
pub legacy_key_cert: Option<String>,
}Fields§
§link_specifiers: Vec<LinkSpecifier>§onion_key_raw: Option<String>§auth_key_cert: Ed25519Certificate§enc_key_raw: Option<String>§enc_key_cert: Ed25519Certificate§legacy_key_raw: Option<String>§legacy_key_cert: Option<String>Implementations§
Source§impl IntroductionPointV3
impl IntroductionPointV3
pub fn parse(content: &[u8]) -> Result<Self>
pub fn create_for_address( address: &str, port: u16, expiration: Option<NaiveDateTime>, ) -> Result<Self>
pub fn create_for_link_specifiers( link_specifiers: Vec<LinkSpecifier>, expiration: Option<NaiveDateTime>, ) -> Result<Self>
pub fn encode(&self) -> Result<String>
pub fn onion_key(&self) -> Result<Option<PublicKey>>
pub fn enc_key(&self) -> Result<Option<PublicKey>>
pub fn auth_key(&self) -> &[u8; 32]
Trait Implementations§
Source§impl Clone for IntroductionPointV3
impl Clone for IntroductionPointV3
Source§impl Debug for IntroductionPointV3
impl Debug for IntroductionPointV3
impl Eq for IntroductionPointV3
Source§impl PartialEq for IntroductionPointV3
impl PartialEq for IntroductionPointV3
Source§impl Serialize for IntroductionPointV3
impl Serialize for IntroductionPointV3
impl StructuralPartialEq for IntroductionPointV3
Auto Trait Implementations§
impl Freeze for IntroductionPointV3
impl RefUnwindSafe for IntroductionPointV3
impl Send for IntroductionPointV3
impl Sync for IntroductionPointV3
impl Unpin for IntroductionPointV3
impl UnsafeUnpin for IntroductionPointV3
impl UnwindSafe for IntroductionPointV3
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere T: Clone,
impl<T> CloneToUninit for Twhere T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.