Struct parity_rpc::v1::SigningUnsafeClient
source · [−]pub struct SigningUnsafeClient<D> { /* private fields */ }Expand description
Implementation of functions that require signing when no trusted signer is used.
Implementations
sourceimpl<D: Dispatcher + 'static> SigningUnsafeClient<D>
impl<D: Dispatcher + 'static> SigningUnsafeClient<D>
Trait Implementations
sourceimpl<D: Dispatcher + 'static> EthSigning for SigningUnsafeClient<D>
impl<D: Dispatcher + 'static> EthSigning for SigningUnsafeClient<D>
sourcefn sign(&self, _: Metadata, address: H160, data: RpcBytes) -> BoxFuture<H520>
fn sign(&self, _: Metadata, address: H160, data: RpcBytes) -> BoxFuture<H520>
Signs the hash of data with given address signature.
sourcefn send_transaction(
&self,
_meta: Metadata,
request: RpcTransactionRequest
) -> BoxFuture<H256>
fn send_transaction(
&self,
_meta: Metadata,
request: RpcTransactionRequest
) -> BoxFuture<H256>
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
sourcefn sign_transaction(
&self,
_meta: Metadata,
request: RpcTransactionRequest
) -> BoxFuture<RpcRichRawTransaction>
fn sign_transaction(
&self,
_meta: Metadata,
request: RpcTransactionRequest
) -> BoxFuture<RpcRichRawTransaction>
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
sourcefn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Create an IoDelegate, wiring rpc calls to the trait methods.
sourceimpl<D: Dispatcher + 'static> ParitySigning for SigningUnsafeClient<D>
impl<D: Dispatcher + 'static> ParitySigning for SigningUnsafeClient<D>
sourcefn compose_transaction(
&self,
_meta: Metadata,
transaction: RpcTransactionRequest
) -> BoxFuture<RpcTransactionRequest>
fn compose_transaction(
&self,
_meta: Metadata,
transaction: RpcTransactionRequest
) -> BoxFuture<RpcTransactionRequest>
Given partial transaction request produces transaction with all fields filled in. Such transaction can be then signed externally. Read more
sourcefn decrypt_message(
&self,
_: Metadata,
address: H160,
data: RpcBytes
) -> BoxFuture<RpcBytes>
fn decrypt_message(
&self,
_: Metadata,
address: H160,
data: RpcBytes
) -> BoxFuture<RpcBytes>
Decrypt some ECIES-encrypted message. First parameter is the address with which it is encrypted, second is the ciphertext. Read more
sourcefn post_sign(
&self,
_: Metadata,
_: H160,
_: RpcBytes
) -> BoxFuture<RpcEither<U256, RpcConfirmationResponse>>
fn post_sign(
&self,
_: Metadata,
_: H160,
_: RpcBytes
) -> BoxFuture<RpcEither<U256, RpcConfirmationResponse>>
Posts sign request asynchronously. Will return a confirmation ID for later use with check_transaction. Read more
sourcefn post_transaction(
&self,
_: Metadata,
_: RpcTransactionRequest
) -> BoxFuture<RpcEither<U256, RpcConfirmationResponse>>
fn post_transaction(
&self,
_: Metadata,
_: RpcTransactionRequest
) -> BoxFuture<RpcEither<U256, RpcConfirmationResponse>>
Posts transaction asynchronously. Will return a transaction ID for later use with check_transaction. Read more
sourcefn check_request(&self, _: U256) -> Result<Option<RpcConfirmationResponse>>
fn check_request(&self, _: U256) -> Result<Option<RpcConfirmationResponse>>
Checks the progress of a previously posted request (transaction/sign). Should be given a valid send_transaction ID. Read more
sourcefn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Create an IoDelegate, wiring rpc calls to the trait methods.
Auto Trait Implementations
impl<D> !RefUnwindSafe for SigningUnsafeClient<D>
impl<D> Send for SigningUnsafeClient<D> where
D: Send,
impl<D> Sync for SigningUnsafeClient<D> where
D: Sync,
impl<D> Unpin for SigningUnsafeClient<D> where
D: Unpin,
impl<D> !UnwindSafe for SigningUnsafeClient<D>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more