Trait fc_rpc::EthSigner

source ·
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§

source

fn accounts(&self) -> Vec<H160>

Available accounts from this signer.

source

fn sign( &self, message: TransactionMessage, address: &H160 ) -> Result<EthereumTransaction, Error>

Sign a transaction message using the given account in message.

Implementors§