pub struct EstablishIntroDetails { /* private fields */ }
Available on crate feature
hs
only.Expand description
The body of an EstablishIntro message, after the signature and MAC are verified.
This tells the introduction point which key it should act as an introduction for, and how.
Implementations§
source§impl EstablishIntroDetails
impl EstablishIntroDetails
sourcepub fn new(auth_key: Ed25519Identity) -> Self
pub fn new(auth_key: Ed25519Identity) -> Self
All arguments constructor
sourcepub fn set_extension_dos(&mut self, extension_dos: DosParams)
pub fn set_extension_dos(&mut self, extension_dos: DosParams)
Set EST_INTRO_DOS_EXT with given extension_dos
.
sourcepub fn set_extension_other(&mut self, other: UnrecognizedExt<EstIntroExtType>)
pub fn set_extension_other(&mut self, other: UnrecognizedExt<EstIntroExtType>)
Add an extension of some other type.
sourcepub fn sign_and_encode<'a>(
self,
keypair: &Keypair,
mac_key: impl Into<HsMacKey<'a>>,
) -> Result<Vec<u8>>
pub fn sign_and_encode<'a>( self, keypair: &Keypair, mac_key: impl Into<HsMacKey<'a>>, ) -> Result<Vec<u8>>
Sign and authenticate this body using a provided Ed25519 keypair and MAC key.
The MAC key is derived from the circuit handshake between the onion service and the introduction point. The Ed25519 keypair must match the one given as the auth_key for this body.
Trait Implementations§
source§impl Clone for EstablishIntroDetails
impl Clone for EstablishIntroDetails
source§fn clone(&self) -> EstablishIntroDetails
fn clone(&self) -> EstablishIntroDetails
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EstablishIntroDetails
impl Debug for EstablishIntroDetails
source§impl Writeable for EstablishIntroDetails
impl Writeable for EstablishIntroDetails
source§fn write_onto<B: Writer + ?Sized>(&self, w: &mut B) -> EncodeResult<()>
fn write_onto<B: Writer + ?Sized>(&self, w: &mut B) -> EncodeResult<()>
Encode this object into the writer
b
.Auto Trait Implementations§
impl Freeze for EstablishIntroDetails
impl RefUnwindSafe for EstablishIntroDetails
impl Send for EstablishIntroDetails
impl Sync for EstablishIntroDetails
impl Unpin for EstablishIntroDetails
impl UnwindSafe for EstablishIntroDetails
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<W> WriteableOnce for Wwhere
W: Writeable,
impl<W> WriteableOnce for Wwhere
W: Writeable,
source§fn write_into<B>(self, b: &mut B) -> Result<(), EncodeError>
fn write_into<B>(self, b: &mut B) -> Result<(), EncodeError>
Encode this object into the writer
b
, and consume it.