pub struct DispatchVerifier { /* private fields */ }Expand description
Public-key verifier implemented through crypto_dispatch::verify.
Public keys are not secret, but the wrapper still keeps the bytes private to prevent accidental mutation between construction and use.
Implementations§
Source§impl DispatchVerifier
impl DispatchVerifier
Sourcepub fn new(alg: Algorithm, public_key: Vec<u8>) -> DispatchVerifier
pub fn new(alg: Algorithm, public_key: Vec<u8>) -> DispatchVerifier
Create a dispatch-backed verifier from a public key.
Sourcepub fn public_key(&self) -> &[u8] ⓘ
pub fn public_key(&self) -> &[u8] ⓘ
The public key this verifier checks against.
Trait Implementations§
Source§impl Debug for DispatchVerifier
impl Debug for DispatchVerifier
Source§impl Verifier for DispatchVerifier
impl Verifier for DispatchVerifier
Auto Trait Implementations§
impl Freeze for DispatchVerifier
impl RefUnwindSafe for DispatchVerifier
impl Send for DispatchVerifier
impl Sync for DispatchVerifier
impl Unpin for DispatchVerifier
impl UnsafeUnpin for DispatchVerifier
impl UnwindSafe for DispatchVerifier
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