pub trait VaultForVerifyingSignatures: Send + Sync + 'static {
    // Required methods
    fn sha256<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Sha256Output>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn verify_signature<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        verifying_public_key: &'life1 VerifyingPublicKey,
        data: &'life2 [u8],
        signature: &'life3 Signature
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Vault for verifying signatures and computing SHA-256.

Required Methods§

source

fn sha256<'life0, 'life1, 'async_trait>( &'life0 self, data: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<Sha256Output>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Compute SHA-256.

source

fn verify_signature<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, verifying_public_key: &'life1 VerifyingPublicKey, data: &'life2 [u8], signature: &'life3 Signature ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Verify a Signature.

Implementors§