Struct ethcore_rpc::v1::SigningUnsafeClient
[−]
[src]
pub struct SigningUnsafeClient<C, M> where C: MiningBlockChainClient, M: MinerService { /* fields omitted */ }
Implementation of functions that require signing when no trusted signer is used.
Methods
impl<C, M> SigningUnsafeClient<C, M> where C: MiningBlockChainClient, M: MinerService
[src]
fn new(client: &Arc<C>, accounts: &Arc<AccountProvider>, miner: &Arc<M>) -> Self
Creates new SigningUnsafeClient.
Trait Implementations
impl<C: 'static, M: 'static> EthSigning for SigningUnsafeClient<C, M> where C: MiningBlockChainClient, M: MinerService
[src]
type Metadata = Metadata
Requests metadata
fn sign(&self, address: RpcH160, data: RpcBytes) -> BoxFuture<RpcH520, Error>
Signs the hash of data with given address signature.
fn send_transaction(&self,
meta: Metadata,
request: RpcTransactionRequest)
-> BoxFuture<RpcH256, Error>
meta: Metadata,
request: RpcTransactionRequest)
-> BoxFuture<RpcH256, 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. Read more
fn sign_transaction(&self,
meta: Metadata,
request: RpcTransactionRequest)
-> BoxFuture<RpcRichRawTransaction, Error>
meta: Metadata,
request: RpcTransactionRequest)
-> BoxFuture<RpcRichRawTransaction, 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
. Read more
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Transform this into an IoDelegate
, automatically wrapping the parameters. Read more
impl<C: 'static, M: 'static> ParitySigning for SigningUnsafeClient<C, M> where C: MiningBlockChainClient, M: MinerService
[src]
type Metadata = Metadata
Requests metadata
fn decrypt_message(&self,
address: RpcH160,
data: RpcBytes)
-> BoxFuture<RpcBytes, Error>
address: RpcH160,
data: RpcBytes)
-> BoxFuture<RpcBytes, Error>
Decrypt some ECIES-encrypted message. First parameter is the address with which it is encrypted, second is the ciphertext. Read more
fn post_sign(&self,
_: RpcH160,
_: RpcBytes)
-> Result<RpcEither<RpcU256, RpcConfirmationResponse>, Error>
_: RpcH160,
_: RpcBytes)
-> Result<RpcEither<RpcU256, RpcConfirmationResponse>, Error>
Posts sign request asynchronously. Will return a confirmation ID for later use with check_transaction. Read more
fn post_transaction(&self,
_: Metadata,
_: RpcTransactionRequest)
-> BoxFuture<RpcEither<RpcU256, RpcConfirmationResponse>, Error>
_: Metadata,
_: RpcTransactionRequest)
-> BoxFuture<RpcEither<RpcU256, RpcConfirmationResponse>, Error>
Posts transaction asynchronously. Will return a transaction ID for later use with check_transaction. Read more
fn check_request(&self,
_: RpcU256)
-> Result<Option<RpcConfirmationResponse>, Error>
_: RpcU256)
-> Result<Option<RpcConfirmationResponse>, Error>
Checks the progress of a previously posted request (transaction/sign). Should be given a valid send_transaction ID. Read more
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Transform this into an IoDelegate
, automatically wrapping the parameters. Read more