pub struct VerificationKeyBytes<D: Domain> { /* private fields */ }
Expand description
A refinement type for [u8; 32]
indicating that the bytes represent
an encoding of a decaf377-rdsa
verification key.
This is useful for representing a compressed verification key; the
VerificationKey
type in this library holds other decompressed state
used in signature verification.
Trait Implementations§
Source§impl<D: Clone + Domain> Clone for VerificationKeyBytes<D>
impl<D: Clone + Domain> Clone for VerificationKeyBytes<D>
Source§fn clone(&self) -> VerificationKeyBytes<D>
fn clone(&self) -> VerificationKeyBytes<D>
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 VerificationKeyBytes<Binding>
impl Debug for VerificationKeyBytes<Binding>
Source§impl Debug for VerificationKeyBytes<SpendAuth>
impl Debug for VerificationKeyBytes<SpendAuth>
Source§impl<'de, D: Domain> Deserialize<'de> for VerificationKeyBytes<D>
impl<'de, D: Domain> Deserialize<'de> for VerificationKeyBytes<D>
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<D: Domain> From<VerificationKey<D>> for VerificationKeyBytes<D>
impl<D: Domain> From<VerificationKey<D>> for VerificationKeyBytes<D>
Source§fn from(pk: VerificationKey<D>) -> VerificationKeyBytes<D>
fn from(pk: VerificationKey<D>) -> VerificationKeyBytes<D>
Converts to this type from the input type.
Source§impl<D: Domain> Hash for VerificationKeyBytes<D>
impl<D: Domain> Hash for VerificationKeyBytes<D>
Source§impl<D: Domain> Ord for VerificationKeyBytes<D>
impl<D: Domain> Ord for VerificationKeyBytes<D>
Source§impl<D: Domain> PartialEq for VerificationKeyBytes<D>
impl<D: Domain> PartialEq for VerificationKeyBytes<D>
Source§impl<D: Domain> PartialOrd for VerificationKeyBytes<D>
impl<D: Domain> PartialOrd for VerificationKeyBytes<D>
Source§impl<D: Domain> Serialize for VerificationKeyBytes<D>
impl<D: Domain> Serialize for VerificationKeyBytes<D>
Source§impl<D: Domain> TryFrom<VerificationKeyBytes<D>> for VerificationKey<D>
impl<D: Domain> TryFrom<VerificationKeyBytes<D>> for VerificationKey<D>
impl<D: Copy + Domain> Copy for VerificationKeyBytes<D>
impl<D: Domain> Eq for VerificationKeyBytes<D>
Auto Trait Implementations§
impl<D> Freeze for VerificationKeyBytes<D>
impl<D> RefUnwindSafe for VerificationKeyBytes<D>where
D: RefUnwindSafe,
impl<D> Send for VerificationKeyBytes<D>where
D: Send,
impl<D> Sync for VerificationKeyBytes<D>where
D: Sync,
impl<D> Unpin for VerificationKeyBytes<D>where
D: Unpin,
impl<D> UnwindSafe for VerificationKeyBytes<D>where
D: 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
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
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> 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