pub struct HoprSphinxHeaderSpec;
Expand description
Current Sphinx header specification for the HOPR protocol.
Trait Implementations§
Source§impl Clone for HoprSphinxHeaderSpec
impl Clone for HoprSphinxHeaderSpec
Source§fn clone(&self) -> HoprSphinxHeaderSpec
fn clone(&self) -> HoprSphinxHeaderSpec
Returns a duplicate 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 HoprSphinxHeaderSpec
impl Debug for HoprSphinxHeaderSpec
Source§impl<'de> Deserialize<'de> for HoprSphinxHeaderSpec
impl<'de> Deserialize<'de> for HoprSphinxHeaderSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HoprSphinxHeaderSpec
impl PartialEq for HoprSphinxHeaderSpec
Source§impl Serialize for HoprSphinxHeaderSpec
impl Serialize for HoprSphinxHeaderSpec
Source§impl SphinxHeaderSpec for HoprSphinxHeaderSpec
impl SphinxHeaderSpec for HoprSphinxHeaderSpec
Source§const MAX_HOPS: NonZeroUsize
const MAX_HOPS: NonZeroUsize
Maximum number of hops.
Source§type PRG = StreamCipherCoreWrapper<ChaChaCore<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>>
type PRG = StreamCipherCoreWrapper<ChaChaCore<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>>
Pseudo-Random Generator function used to encrypt and decrypt the Sphinx header.
Source§type PacketReceiverData = HoprSenderId
type PacketReceiverData = HoprSenderId
Type representing additional data delivered to the packet receiver. Read more
Source§type RelayerData = ProofOfRelayString
type RelayerData = ProofOfRelayString
Type representing additional data for relayers.
Source§type SurbReceiverData = SurbReceiverInfo
type SurbReceiverData = SurbReceiverInfo
Type representing additional data delivered with each SURB to the packet receiver. Read more
§const RELAYER_DATA_SIZE: usize = <Self::RelayerData>::SIZE
const RELAYER_DATA_SIZE: usize = <Self::RelayerData>::SIZE
Size of the additional data for relayers.
§const SURB_RECEIVER_DATA_SIZE: usize = <Self::SurbReceiverData>::SIZE
const SURB_RECEIVER_DATA_SIZE: usize = <Self::SurbReceiverData>::SIZE
Size of the additional data included in SURBs.
§const RECEIVER_DATA_SIZE: usize = <Self::PacketReceiverData>::SIZE
const RECEIVER_DATA_SIZE: usize = <Self::PacketReceiverData>::SIZE
Size of the additional data for the packet receiver.
§const KEY_ID_SIZE: NonZero<usize> = _
const KEY_ID_SIZE: NonZero<usize> = _
Size of the public key identifier
§const TAG_SIZE: usize = <<Self::UH as crypto_traits::BlockSizeUser>::BlockSize>::USIZE
const TAG_SIZE: usize = <<Self::UH as crypto_traits::BlockSizeUser>::BlockSize>::USIZE
Size of the one-time authenticator tag.
§const ROUTING_INFO_LEN: usize = _
const ROUTING_INFO_LEN: usize = _
Length of the header routing information per hop. Read more
§const HEADER_LEN: usize = _
const HEADER_LEN: usize = _
Length of the whole Sphinx header. Read more
§const EXT_HEADER_LEN: usize = _
const EXT_HEADER_LEN: usize = _
Extended header size used for computations. Read more
fn generate_filler( secrets: &[SecretValue<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>], ) -> Result<Box<[u8]>, CryptoError>
impl Copy for HoprSphinxHeaderSpec
impl Eq for HoprSphinxHeaderSpec
impl StructuralPartialEq for HoprSphinxHeaderSpec
Auto Trait Implementations§
impl Freeze for HoprSphinxHeaderSpec
impl RefUnwindSafe for HoprSphinxHeaderSpec
impl Send for HoprSphinxHeaderSpec
impl Sync for HoprSphinxHeaderSpec
impl Unpin for HoprSphinxHeaderSpec
impl UnwindSafe for HoprSphinxHeaderSpec
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,
§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.§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<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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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