Trait ethcore_rpc::v1::traits::eth_signing::EthSigning
[−]
pub trait EthSigning: Sized + Send + Sync + 'static { type Metadata: Metadata; fn sign(&self, H160, Bytes) -> BoxFuture<H520, Error>; fn send_transaction(&self,
Self::Metadata,
TransactionRequest)
-> BoxFuture<H256, Error>; fn sign_transaction(&self,
Self::Metadata,
TransactionRequest)
-> BoxFuture<RichRawTransaction, Error>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }
Signing methods implementation relying on unlocked accounts.
Associated Types
type Metadata: Metadata
Requests metadata
Required Methods
fn sign(&self, H160, Bytes) -> BoxFuture<H520, Error>
Signs the hash of data with given address signature.
fn send_transaction(&self,
Self::Metadata,
TransactionRequest)
-> BoxFuture<H256, Error>
Self::Metadata,
TransactionRequest)
-> BoxFuture<H256, Error>
Sends transaction; will block waiting for signer to return the transaction hash. If Signer is disable it will require the account to be unlocked.
fn sign_transaction(&self,
Self::Metadata,
TransactionRequest)
-> BoxFuture<RichRawTransaction, Error>
Self::Metadata,
TransactionRequest)
-> BoxFuture<RichRawTransaction, Error>
Signs transactions without dispatching it to the network.
Returns signed transaction RLP representation and the transaction itself.
It can be later submitted using eth_sendRawTransaction/eth_submitTransaction
.
Provided Methods
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Transform this into an IoDelegate
, automatically wrapping
the parameters.
Implementors
impl<C: 'static, M: 'static> EthSigning for SigningQueueClient<C, M> where C: MiningBlockChainClient, M: MinerService
impl<C: 'static, M: 'static> EthSigning for SigningUnsafeClient<C, M> where C: MiningBlockChainClient, M: MinerService