pub struct MockECDSAIdentityProvider { /* private fields */ }
Available on crate feature
dev
only.Expand description
A mock ECDSA/Secp256k1/SHA-256 based identity provider.
Implementations§
Trait Implementations§
Source§impl Clone for MockECDSAIdentityProvider
impl Clone for MockECDSAIdentityProvider
Source§fn clone(&self) -> MockECDSAIdentityProvider
fn clone(&self) -> MockECDSAIdentityProvider
Returns a duplicate of the value. Read more
1.0.0 · 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 MockECDSAIdentityProvider
impl Debug for MockECDSAIdentityProvider
Source§impl IdentityProvider for MockECDSAIdentityProvider
impl IdentityProvider for MockECDSAIdentityProvider
Source§fn verifying_key(&self) -> VerifyingKey
fn verifying_key(&self) -> VerifyingKey
Computes and serializes the ECDSA/Secp256k1 verifying key (in SEC1 format).
Source§fn sign(&self, msg: &[u8]) -> Signature
fn sign(&self, msg: &[u8]) -> Signature
Computes and serializes (in DER format) the ECDSA/Secp256k1/SHA-256 signature of a message .
Computes the ECDSA/Secp256k1/SHA-256 signature for a message and returns (r
, s
) as ([u8; 32]
, [u8; 32]
).
Auto Trait Implementations§
impl Freeze for MockECDSAIdentityProvider
impl RefUnwindSafe for MockECDSAIdentityProvider
impl Send for MockECDSAIdentityProvider
impl Sync for MockECDSAIdentityProvider
impl Unpin for MockECDSAIdentityProvider
impl UnwindSafe for MockECDSAIdentityProvider
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