pub trait Signer: Sized + Send + Sync + 'static {
    type Metadata: PubSubMetadata;
    fn requests_to_confirm(&self) -> Result<Vec<ConfirmationRequest>>;
fn confirm_request(
        &self,
        _: U256,
        _: TransactionModification,
        _: String
    ) -> BoxFuture<ConfirmationResponse>;
fn confirm_request_with_token(
        &self,
        _: U256,
        _: TransactionModification,
        _: String
    ) -> BoxFuture<ConfirmationResponseWithToken>;
fn confirm_request_raw(
        &self,
        _: U256,
        _: Bytes
    ) -> Result<ConfirmationResponse>;
fn reject_request(&self, _: U256) -> Result<bool>;
fn generate_token(&self) -> Result<String>;
fn subscribe_pending(
        &self,
        _: Self::Metadata,
        _: Subscriber<Vec<ConfirmationRequest>>
    );
fn unsubscribe_pending(
        &self,
        _: Option<Self::Metadata>,
        _: SubscriptionId
    ) -> Result<bool>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }
Expand description

Signer extension for confirmations rpc interface.

Associated Types

RPC Metadata

Required methods

Returns a list of items to confirm.

Confirm specific request.

Confirm specific request with token.

Confirm specific request with already signed data.

Reject the confirmation request.

Generates new authorization token.

Subscribe to new pending requests on signer interface.

Unsubscribe from pending requests subscription.

Provided methods

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

Implementors