Trait ethcore_rpc::v1::traits::signer::Signer
[−]
pub trait Signer: Sized + Send + Sync + 'static { fn requests_to_confirm(&self) -> Result<Vec<ConfirmationRequest>, Error>; fn confirm_request(&self,
U256,
TransactionModification,
String)
-> Result<ConfirmationResponse, Error>; fn confirm_request_with_token(&self,
U256,
TransactionModification,
String)
-> Result<ConfirmationResponseWithToken, Error>; fn confirm_request_raw(&self,
U256,
Bytes)
-> Result<ConfirmationResponse, Error>; fn reject_request(&self, U256) -> Result<bool, Error>; fn generate_token(&self) -> Result<String, Error>; fn generate_web_proxy_token(&self) -> Result<String, Error>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... } }
Signer extension for confirmations rpc interface.
Required Methods
fn requests_to_confirm(&self) -> Result<Vec<ConfirmationRequest>, Error>
Returns a list of items to confirm.
fn confirm_request(&self,
U256,
TransactionModification,
String)
-> Result<ConfirmationResponse, Error>
U256,
TransactionModification,
String)
-> Result<ConfirmationResponse, Error>
Confirm specific request.
fn confirm_request_with_token(&self,
U256,
TransactionModification,
String)
-> Result<ConfirmationResponseWithToken, Error>
U256,
TransactionModification,
String)
-> Result<ConfirmationResponseWithToken, Error>
Confirm specific request with token.
fn confirm_request_raw(&self,
U256,
Bytes)
-> Result<ConfirmationResponse, Error>
U256,
Bytes)
-> Result<ConfirmationResponse, Error>
Confirm specific request with already signed data.
fn reject_request(&self, U256) -> Result<bool, Error>
Reject the confirmation request.
fn generate_token(&self) -> Result<String, Error>
Generates new authorization token.
fn generate_web_proxy_token(&self) -> Result<String, Error>
Generates new web proxy access token.
Provided Methods
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Transform this into an IoDelegate
, automatically wrapping
the parameters.
Implementors
impl<C: 'static, M: 'static> Signer for SignerClient<C, M> where C: MiningBlockChainClient, M: MinerService