pub struct HsBlindIdKey(PublicKey);
Expand description
The “blinded” identity of a v3 onion service. (KP_hs_blind_id
)
This key is derived via a one-way transformation from an
HsIdKey
and the current time period.
It is used for two purposes: first, to compute an index into the HSDir
ring, and second, to sign a DescSigningKey
.
Note: This is a separate type from HsBlindId
because it is about 6x
larger. It is an expanded form, used for doing actual cryptography.
Tuple Fields§
§0: PublicKey
Implementations§
Methods from Deref<Target = PublicKey>§
Trait Implementations§
Source§impl AsRef<PublicKey> for HsBlindIdKey
impl AsRef<PublicKey> for HsBlindIdKey
Source§impl Clone for HsBlindIdKey
impl Clone for HsBlindIdKey
Source§fn clone(&self) -> HsBlindIdKey
fn clone(&self) -> HsBlindIdKey
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HsBlindIdKey
impl Debug for HsBlindIdKey
Source§impl Deref for HsBlindIdKey
impl Deref for HsBlindIdKey
Source§impl From<&HsBlindIdKeypair> for HsBlindIdKey
impl From<&HsBlindIdKeypair> for HsBlindIdKey
Source§fn from(value: &HsBlindIdKeypair) -> Self
fn from(value: &HsBlindIdKeypair) -> Self
Converts to this type from the input type.
Source§impl From<HsBlindIdKey> for HsBlindId
impl From<HsBlindIdKey> for HsBlindId
Source§fn from(value: HsBlindIdKey) -> Self
fn from(value: HsBlindIdKey) -> Self
Converts to this type from the input type.
Source§impl From<HsBlindIdKey> for PublicKey
impl From<HsBlindIdKey> for PublicKey
Source§fn from(value: HsBlindIdKey) -> Self
fn from(value: HsBlindIdKey) -> Self
Converts to this type from the input type.
Source§impl From<HsBlindIdKeypair> for HsBlindIdKey
impl From<HsBlindIdKeypair> for HsBlindIdKey
Source§fn from(kp: HsBlindIdKeypair) -> HsBlindIdKey
fn from(kp: HsBlindIdKeypair) -> HsBlindIdKey
Converts to this type from the input type.
Source§impl From<PublicKey> for HsBlindIdKey
impl From<PublicKey> for HsBlindIdKey
Source§impl ToEncodableKey for HsBlindIdKey
impl ToEncodableKey for HsBlindIdKey
Source§type KeyPair = HsBlindIdKeypair
type KeyPair = HsBlindIdKeypair
The KeyPair (secret+public) of which this key is a subset. For secret
keys, this type is Self. For public keys, this type is the
corresponding (secret) keypair. Read more
Source§fn to_encodable_key(self) -> Self::Key
fn to_encodable_key(self) -> Self::Key
Convert this key to a type that implements
EncodableItem
.Source§fn from_encodable_key(key: Self::Key) -> Self
fn from_encodable_key(key: Self::Key) -> Self
Convert an
EncodableItem
to another key type.Auto Trait Implementations§
impl Freeze for HsBlindIdKey
impl RefUnwindSafe for HsBlindIdKey
impl Send for HsBlindIdKey
impl Sync for HsBlindIdKey
impl Unpin for HsBlindIdKey
impl UnwindSafe for HsBlindIdKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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