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§
Sourcefn 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 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
Sourcefn 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,
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