Struct decaf377_rdsa::VerificationKey
source · pub struct VerificationKey<D: Domain> { /* private fields */ }
Expand description
A valid decaf377-rdsa
verification key.
This type holds decompressed state used in signature verification; if the
verification key may not be used immediately, it is probably better to use
VerificationKeyBytes
, which is a refinement type for [u8; 32]
.
Implementations§
source§impl<D: Domain> VerificationKey<D>
impl<D: Domain> VerificationKey<D>
source§impl VerificationKey<SpendAuth>
impl VerificationKey<SpendAuth>
sourcepub fn randomize(&self, randomizer: &Fr) -> VerificationKey<SpendAuth>
pub fn randomize(&self, randomizer: &Fr) -> VerificationKey<SpendAuth>
Randomize this verification key with the given randomizer
.
Randomization is only supported for SpendAuth
keys.
Trait Implementations§
source§impl<D: Clone + Domain> Clone for VerificationKey<D>
impl<D: Clone + Domain> Clone for VerificationKey<D>
source§fn clone(&self) -> VerificationKey<D>
fn clone(&self) -> VerificationKey<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 VerificationKey<Binding>
impl Debug for VerificationKey<Binding>
source§impl Debug for VerificationKey<SpendAuth>
impl Debug for VerificationKey<SpendAuth>
source§impl<'de, D> Deserialize<'de> for VerificationKey<D>where
D: Domain,
impl<'de, D> Deserialize<'de> for VerificationKey<D>where
D: Domain,
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<'a, D: Domain> From<&'a SigningKey<D>> for VerificationKey<D>
impl<'a, D: Domain> From<&'a SigningKey<D>> for VerificationKey<D>
source§fn from(sk: &'a SigningKey<D>) -> VerificationKey<D>
fn from(sk: &'a SigningKey<D>) -> VerificationKey<D>
Converts to this type from the input type.
source§impl<'a, D: Domain> From<SigningKey<D>> for VerificationKey<D>
impl<'a, D: Domain> From<SigningKey<D>> for VerificationKey<D>
source§fn from(sk: SigningKey<D>) -> VerificationKey<D>
fn from(sk: SigningKey<D>) -> VerificationKey<D>
Converts to this type from the input type.
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 VerificationKey<D>
impl<D: Domain> Hash for VerificationKey<D>
source§impl<D: Domain> Ord for VerificationKey<D>
impl<D: Domain> Ord for VerificationKey<D>
source§impl<D: Domain> PartialEq for VerificationKey<D>
impl<D: Domain> PartialEq for VerificationKey<D>
source§impl<D: Domain> PartialOrd for VerificationKey<D>
impl<D: Domain> PartialOrd for VerificationKey<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> Serialize for VerificationKey<D>where
D: Domain,
impl<D> Serialize for VerificationKey<D>where
D: Domain,
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 VerificationKey<D>
impl<D: Domain> Eq for VerificationKey<D>
Auto Trait Implementations§
impl<D> Freeze for VerificationKey<D>
impl<D> RefUnwindSafe for VerificationKey<D>where
D: RefUnwindSafe,
impl<D> Send for VerificationKey<D>where
D: Send,
impl<D> Sync for VerificationKey<D>where
D: Sync,
impl<D> Unpin for VerificationKey<D>where
D: Unpin,
impl<D> UnwindSafe for VerificationKey<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