pub struct EcdsaSignature {
pub key_type: KeyType,
}
Expand description
ECDSA signature provider
Fields§
§key_type: KeyType
Implementations§
Trait Implementations§
Source§impl Clone for EcdsaSignature
impl Clone for EcdsaSignature
Source§fn clone(&self) -> EcdsaSignature
fn clone(&self) -> EcdsaSignature
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 EcdsaSignature
impl Debug for EcdsaSignature
Source§impl Default for EcdsaSignature
impl Default for EcdsaSignature
Source§impl KeyedCryptoPrimitive for EcdsaSignature
impl KeyedCryptoPrimitive for EcdsaSignature
type PublicKey = PublicKey
type PrivateKey = PrivateKey
type Input = Vec<u8>
type Output = Vec<u8>
type Message = Vec<u8>
type Signature = Signature
fn generate_keypair<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(Self::PrivateKey, Self::PublicKey)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn compute<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 Self::PrivateKey,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
private_key: &'life1 Self::PrivateKey,
message: &'life2 Self::Message,
) -> Pin<Box<dyn Future<Output = Result<Self::Signature>> + 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,
key: &'life1 Self::PublicKey,
input: Self::Input,
output: &'life2 Self::Output,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for EcdsaSignature
impl RefUnwindSafe for EcdsaSignature
impl Send for EcdsaSignature
impl Sync for EcdsaSignature
impl Unpin for EcdsaSignature
impl UnwindSafe for EcdsaSignature
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