Struct decaf377_rdsa::VerificationKeyBytes
source · 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>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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
§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