pub trait EthSigner: Send + Sync {
// Required methods
fn accounts(&self) -> Vec<H160>;
fn sign(
&self,
message: TransactionMessage,
address: &H160
) -> Result<EthereumTransaction, ErrorObjectOwned>;
}
Expand description
A generic Ethereum signer.
Required Methods§
sourcefn sign(
&self,
message: TransactionMessage,
address: &H160
) -> Result<EthereumTransaction, ErrorObjectOwned>
fn sign( &self, message: TransactionMessage, address: &H160 ) -> Result<EthereumTransaction, ErrorObjectOwned>
Sign a transaction message using the given account in message.