pub struct VerifyingKey<P: ParameterSet> { /* private fields */ }Expand description
Public key for signature verification.
Implementations§
Source§impl<P: ParameterSet> VerifyingKey<P>
impl<P: ParameterSet> VerifyingKey<P>
Sourcepub fn verify_with_ctx(
&self,
message: &[u8],
context: &[u8],
signature: &Signature<P>,
) -> Result<(), Error>
pub fn verify_with_ctx( &self, message: &[u8], context: &[u8], signature: &Signature<P>, ) -> Result<(), Error>
Use Self to verify that the provided signature
for a given message bytestring is authentic
under the associated context bytestring.
§Errors
Returns signature::Error if it is inauthentic,
or otherwise returns ().
Trait Implementations§
Source§impl<P: ParameterSet> AsRef<[u8]> for VerifyingKey<P>
impl<P: ParameterSet> AsRef<[u8]> for VerifyingKey<P>
Source§impl<P: Clone + ParameterSet> Clone for VerifyingKey<P>
impl<P: Clone + ParameterSet> Clone for VerifyingKey<P>
Source§fn clone(&self) -> VerifyingKey<P>
fn clone(&self) -> VerifyingKey<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug + ParameterSet> Debug for VerifyingKey<P>
impl<P: Debug + ParameterSet> Debug for VerifyingKey<P>
Source§impl<P: ParameterSet> From<VerifyingKey<P>> for GenericArray<u8, <P as VerifyingKeyLen>::LEN>
impl<P: ParameterSet> From<VerifyingKey<P>> for GenericArray<u8, <P as VerifyingKeyLen>::LEN>
Source§fn from(vk: VerifyingKey<P>) -> Self
fn from(vk: VerifyingKey<P>) -> Self
Converts to this type from the input type.
Source§impl<P: PartialEq + ParameterSet> PartialEq for VerifyingKey<P>
impl<P: PartialEq + ParameterSet> PartialEq for VerifyingKey<P>
Source§fn eq(&self, other: &VerifyingKey<P>) -> bool
fn eq(&self, other: &VerifyingKey<P>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<P: PartialEq + ParameterSet> StructuralPartialEq for VerifyingKey<P>
Source§impl<P: ParameterSet> TryFrom<&[u8]> for VerifyingKey<P>
impl<P: ParameterSet> TryFrom<&[u8]> for VerifyingKey<P>
Auto Trait Implementations§
impl<P> Freeze for VerifyingKey<P>
impl<P> RefUnwindSafe for VerifyingKey<P>
impl<P> Send for VerifyingKey<P>
impl<P> Sync for VerifyingKey<P>
impl<P> Unpin for VerifyingKey<P>
impl<P> UnsafeUnpin for VerifyingKey<P>
impl<P> UnwindSafe for VerifyingKey<P>
Blanket Implementations§
Source§impl<S, T> AsyncVerifier<S> for Twhere
T: Verifier<S>,
impl<S, T> AsyncVerifier<S> for Twhere
T: Verifier<S>,
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