Struct frost_core::VerifyingKey
source · pub struct VerifyingKey<C>where
C: Ciphersuite,{ /* private fields */ }
Expand description
A valid verifying key for Schnorr signatures over a FROST Ciphersuite::Group
.
Implementations§
source§impl<C> VerifyingKey<C>where
C: Ciphersuite,
impl<C> VerifyingKey<C>where C: Ciphersuite,
sourcepub fn deserialize(
bytes: <C::Group as Group>::Serialization
) -> Result<VerifyingKey<C>, Error<C>>
pub fn deserialize( bytes: <C::Group as Group>::Serialization ) -> Result<VerifyingKey<C>, Error<C>>
Deserialize from bytes
sourcepub fn serialize(&self) -> <C::Group as Group>::Serialization
pub fn serialize(&self) -> <C::Group as Group>::Serialization
Serialize VerifyingKey
to bytes
Trait Implementations§
source§impl<C> Clone for VerifyingKey<C>where
C: Ciphersuite + Clone,
impl<C> Clone for VerifyingKey<C>where C: Ciphersuite + Clone,
source§fn clone(&self) -> VerifyingKey<C>
fn clone(&self) -> VerifyingKey<C>
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<C> Debug for VerifyingKey<C>where
C: Ciphersuite,
impl<C> Debug for VerifyingKey<C>where C: Ciphersuite,
source§impl<C> From<&SigningKey<C>> for VerifyingKey<C>where
C: Ciphersuite,
impl<C> From<&SigningKey<C>> for VerifyingKey<C>where C: Ciphersuite,
source§fn from(signing_key: &SigningKey<C>) -> Self
fn from(signing_key: &SigningKey<C>) -> Self
Converts to this type from the input type.
source§impl<C> From<SigningKey<C>> for VerifyingKey<C>where
C: Ciphersuite,
impl<C> From<SigningKey<C>> for VerifyingKey<C>where C: Ciphersuite,
source§fn from(signing_key: SigningKey<C>) -> Self
fn from(signing_key: SigningKey<C>) -> Self
Converts to this type from the input type.
source§impl<C> PartialEq<VerifyingKey<C>> for VerifyingKey<C>where
C: Ciphersuite + PartialEq,
impl<C> PartialEq<VerifyingKey<C>> for VerifyingKey<C>where C: Ciphersuite + PartialEq,
source§fn eq(&self, other: &VerifyingKey<C>) -> bool
fn eq(&self, other: &VerifyingKey<C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<C> Copy for VerifyingKey<C>where C: Ciphersuite + Copy,
impl<C> Eq for VerifyingKey<C>where C: Ciphersuite + Eq,
impl<C> StructuralEq for VerifyingKey<C>where C: Ciphersuite,
impl<C> StructuralPartialEq for VerifyingKey<C>where C: Ciphersuite,
Auto Trait Implementations§
impl<C> RefUnwindSafe for VerifyingKey<C>where <<C as Ciphersuite>::Group as Group>::Element: RefUnwindSafe,
impl<C> Send for VerifyingKey<C>where <<C as Ciphersuite>::Group as Group>::Element: Send,
impl<C> Sync for VerifyingKey<C>where <<C as Ciphersuite>::Group as Group>::Element: Sync,
impl<C> Unpin for VerifyingKey<C>where <<C as Ciphersuite>::Group as Group>::Element: Unpin,
impl<C> UnwindSafe for VerifyingKey<C>where <<C as Ciphersuite>::Group as Group>::Element: 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