pub struct SsaPolynomialId<P> {
id: SsaId<P>,
poly_index: PolynomialIndex,
}Expand description
Uniquely identifies a polynomial that allows forming a Session Stealth Address (SSA) corresponding to a specific Session.
The index consists of the following parts:
- The Pseudonym part of the
HoprSenderId- fixed for the given Session. - Index (i) of the Session Stealth Address (SSA)
- Index (j) of the polynomial used to reconstruct the portion of the SSA.
Fields§
§id: SsaId<P>§poly_index: PolynomialIndexImplementations§
Source§impl<P> SsaPolynomialId<P>
impl<P> SsaPolynomialId<P>
Sourcepub fn new(id: SsaId<P>, poly_index: PolynomialIndex) -> Self
pub fn new(id: SsaId<P>, poly_index: PolynomialIndex) -> Self
Creates a new SsaPolynomialId with the given SsaId and polynomial index.
Sourcepub fn poly_index(&self) -> PolynomialIndex
pub fn poly_index(&self) -> PolynomialIndex
Index (j-value) of the polynomial used to reconstruct the portion of the SSA.
Trait Implementations§
Source§impl<P> AsRef<SsaId<P>> for SsaPolynomialId<P>
impl<P> AsRef<SsaId<P>> for SsaPolynomialId<P>
Source§impl<P: Clone> Clone for SsaPolynomialId<P>
impl<P: Clone> Clone for SsaPolynomialId<P>
Source§fn clone(&self) -> SsaPolynomialId<P>
fn clone(&self) -> SsaPolynomialId<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<P: Copy> Copy for SsaPolynomialId<P>
Source§impl<P: Debug> Debug for SsaPolynomialId<P>
impl<P: Debug> Debug for SsaPolynomialId<P>
Source§impl<'de, P> Deserialize<'de> for SsaPolynomialId<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for SsaPolynomialId<P>where
P: Deserialize<'de>,
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<P: Display> Display for SsaPolynomialId<P>
impl<P: Display> Display for SsaPolynomialId<P>
impl<P: Eq> Eq for SsaPolynomialId<P>
Source§impl<P: Hash> Hash for SsaPolynomialId<P>
impl<P: Hash> Hash for SsaPolynomialId<P>
Source§impl<P: Ord> Ord for SsaPolynomialId<P>
impl<P: Ord> Ord for SsaPolynomialId<P>
Source§fn cmp(&self, other: &SsaPolynomialId<P>) -> Ordering
fn cmp(&self, other: &SsaPolynomialId<P>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<P: PartialEq> PartialEq for SsaPolynomialId<P>
impl<P: PartialEq> PartialEq for SsaPolynomialId<P>
Source§impl<P: PartialOrd> PartialOrd for SsaPolynomialId<P>
impl<P: PartialOrd> PartialOrd for SsaPolynomialId<P>
Source§impl<P> Serialize for SsaPolynomialId<P>where
P: Serialize,
impl<P> Serialize for SsaPolynomialId<P>where
P: Serialize,
impl<P: PartialEq> StructuralPartialEq for SsaPolynomialId<P>
Auto Trait Implementations§
impl<P> Freeze for SsaPolynomialId<P>where
P: Freeze,
impl<P> RefUnwindSafe for SsaPolynomialId<P>where
P: RefUnwindSafe,
impl<P> Send for SsaPolynomialId<P>where
P: Send,
impl<P> Sync for SsaPolynomialId<P>where
P: Sync,
impl<P> Unpin for SsaPolynomialId<P>where
P: Unpin,
impl<P> UnsafeUnpin for SsaPolynomialId<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for SsaPolynomialId<P>where
P: UnwindSafe,
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<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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<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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<'de, T> RpcBorrow<'de> for T
impl<T> RpcObject for Twhere
T: RpcSend + RpcRecv,
impl<T> RpcRecv for T
impl<T> RpcSend for T
§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP