Trait AwsKmsEvmService

Source
pub trait AwsKmsEvmService: Send + Sync {
    // Required methods
    fn get_evm_address<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = AwsKmsResult<Address>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_payload_evm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        payload: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get_evm_address<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = AwsKmsResult<Address>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the EVM address derived from the configured public key.

Source

fn sign_payload_evm<'life0, 'life1, 'async_trait>( &'life0 self, payload: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = AwsKmsResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Signs a payload using the EVM signing scheme. Pre-hashes the message with keccak-256.

Implementors§