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 from_bytes(
bytes: <C::Group as Group>::Serialization
) -> Result<VerifyingKey<C>, Error<C>>
pub fn from_bytes( bytes: <C::Group as Group>::Serialization ) -> Result<VerifyingKey<C>, Error<C>>
Deserialize from bytes
sourcepub fn to_bytes(&self) -> <C::Group as Group>::Serialization
pub fn to_bytes(&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§fn from(secret: &SharedSecret<C>) -> Self
fn from(secret: &SharedSecret<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> 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 ==
.