pub struct MockWebauthnSigner<A: Algorithm, UV: UserVerification, S: Signer<A::Curve>> { /* private fields */ }Expand description
Mock signer for Webauthn signature schema
Implementations§
Source§impl<A, UV, S> MockWebauthnSigner<A, UV, S>
impl<A, UV, S> MockWebauthnSigner<A, UV, S>
Trait Implementations§
Source§impl<A: Algorithm, UV: UserVerification, S> Clone for MockWebauthnSigner<A, UV, S>
impl<A: Algorithm, UV: UserVerification, S> Clone for MockWebauthnSigner<A, UV, S>
Auto Trait Implementations§
impl<A, UV, S> Freeze for MockWebauthnSigner<A, UV, S>where
S: Freeze,
impl<A, UV, S> RefUnwindSafe for MockWebauthnSigner<A, UV, S>where
S: RefUnwindSafe,
impl<A, UV, S> Send for MockWebauthnSigner<A, UV, S>
impl<A, UV, S> Sync for MockWebauthnSigner<A, UV, S>
impl<A, UV, S> Unpin for MockWebauthnSigner<A, UV, S>where
S: Unpin,
impl<A, UV, S> UnsafeUnpin for MockWebauthnSigner<A, UV, S>where
S: UnsafeUnpin,
impl<A, UV, S> UnwindSafe for MockWebauthnSigner<A, UV, S>where
S: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<S> SignerExt for S
impl<S> SignerExt for S
§fn public_key<C>(&self) -> <C as Curve>::PublicKeywhere
C: Curve,
Self: Signer<C>,
fn public_key<C>(&self) -> <C as Curve>::PublicKeywhere
C: Curve,
Self: Signer<C>,
Get the public key of the signer on a curve
C. Read more§fn sign<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<<C as Curve>::Signature, Self::Error>> + Sendwhere
C: Curve,
Self: Signer<C>,
fn sign<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<<C as Curve>::Signature, Self::Error>> + Sendwhere
C: Curve,
Self: Signer<C>,
Sign a given message and return a signature. Read more
§fn sign_recoverable<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<(<C as Curve>::Signature, <C as RecoverableCurve>::RecoveryId), Self::Error>> + Sendwhere
C: RecoverableCurve,
Self: RecoverableSigner<C>,
fn sign_recoverable<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<(<C as Curve>::Signature, <C as RecoverableCurve>::RecoveryId), Self::Error>> + Sendwhere
C: RecoverableCurve,
Self: RecoverableSigner<C>,
Sign a given message and return a signature along with recovery id. Read more
§fn cache_public_key<C>(self) -> CachePublicKey<C, Self>where
C: Curve,
Self: Sized + Signer<C>,
fn cache_public_key<C>(self) -> CachePublicKey<C, Self>where
C: Curve,
Self: Sized + Signer<C>,
Calculate
.public_key() and cache its value for
further invocations. Read more