openzeppelin_relayer::services

Trait Signer

Source
pub trait Signer: Send + Sync {
    // Required methods
    fn address<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Address, SignerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_transaction<'life0, 'async_trait>(
        &'life0 self,
        transaction: NetworkTransactionData,
    ) -> Pin<Box<dyn Future<Output = Result<SignTransactionResponse, SignerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

Returns the signer’s ethereum address

Source

fn sign_transaction<'life0, 'async_trait>( &'life0 self, transaction: NetworkTransactionData, ) -> Pin<Box<dyn Future<Output = Result<SignTransactionResponse, SignerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Signs a transaction

Implementors§