pub struct DidKeyVerifier { /* private fields */ }Expand description
Verifier for did:key self-signed compact JWTs.
Implementations§
Trait Implementations§
Source§impl Clone for DidKeyVerifier
impl Clone for DidKeyVerifier
Source§fn clone(&self) -> DidKeyVerifier
fn clone(&self) -> DidKeyVerifier
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 Debug for DidKeyVerifier
impl Debug for DidKeyVerifier
Source§impl Default for DidKeyVerifier
impl Default for DidKeyVerifier
Source§impl SelfSignedVerifier for DidKeyVerifier
impl SelfSignedVerifier for DidKeyVerifier
Source§fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 ProofEnvelope<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Option<VerifiedSubject>, SelfSignedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 ProofEnvelope<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Option<VerifiedSubject>, SelfSignedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Attempt to verify the proof. Returns
Ok(Some(subject)) on a
successful verification, Ok(None) if the proof does not match
this verifier’s format (allows the fan-out dispatcher to try the
next one), or Err(…) when the format matches but verification
fails — in which case the fan-out stops.Auto Trait Implementations§
impl Freeze for DidKeyVerifier
impl RefUnwindSafe for DidKeyVerifier
impl Send for DidKeyVerifier
impl Sync for DidKeyVerifier
impl Unpin for DidKeyVerifier
impl UnsafeUnpin for DidKeyVerifier
impl UnwindSafe for DidKeyVerifier
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