pub struct VerifyingKey { /* private fields */ }Expand description
A verifying key is a public key used for verifying signatures. It can be published to other
users, who can use it to verify that messages were signed by the holder of the corresponding
SigningKey.
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
Sourcepub fn algorithm(&self) -> SignatureAlgorithm
pub fn algorithm(&self) -> SignatureAlgorithm
Returns the signature scheme used by the verifying key.
Trait Implementations§
Source§impl CoseSerializable<CoseKeyContentFormat> for VerifyingKey
impl CoseSerializable<CoseKeyContentFormat> for VerifyingKey
Source§fn to_cose(&self) -> CoseKeyBytes
fn to_cose(&self) -> CoseKeyBytes
Serializes the struct to COSE serialization
Source§fn from_cose(bytes: &CoseKeyBytes) -> Result<Self, EncodingError>where
Self: Sized,
fn from_cose(bytes: &CoseKeyBytes) -> Result<Self, EncodingError>where
Self: Sized,
Deserializes a serialized COSE object to a struct
Auto Trait Implementations§
impl Freeze for VerifyingKey
impl RefUnwindSafe for VerifyingKey
impl Send for VerifyingKey
impl Sync for VerifyingKey
impl Unpin for VerifyingKey
impl UnwindSafe for VerifyingKey
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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