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>
Source§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
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