pub trait ParitySigning: Sized + Send + Sync + 'static {
    type Metadata: Metadata;
    fn compose_transaction(
        &self,
        _: Self::Metadata,
        _: TransactionRequest
    ) -> BoxFuture<TransactionRequest>;
fn post_sign(
        &self,
        _: Self::Metadata,
        _: H160,
        _: Bytes
    ) -> BoxFuture<Either<U256, ConfirmationResponse>>;
fn post_transaction(
        &self,
        _: Self::Metadata,
        _: TransactionRequest
    ) -> BoxFuture<Either<U256, ConfirmationResponse>>;
fn check_request(&self, _: U256) -> Result<Option<ConfirmationResponse>>;
fn decrypt_message(
        &self,
        _: Self::Metadata,
        _: H160,
        _: Bytes
    ) -> BoxFuture<Bytes>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }
Expand description

Signing methods implementation.

Associated Types

RPC Metadata

Required methods

Given partial transaction request produces transaction with all fields filled in. Such transaction can be then signed externally.

Posts sign request asynchronously. Will return a confirmation ID for later use with check_transaction.

Posts transaction asynchronously. Will return a transaction ID for later use with check_transaction.

Checks the progress of a previously posted request (transaction/sign). Should be given a valid send_transaction ID.

Decrypt some ECIES-encrypted message. First parameter is the address with which it is encrypted, second is the ciphertext.

Provided methods

Create an IoDelegate, wiring rpc calls to the trait methods.

Implementors