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