Trait TxSigner

pub trait TxSigner: Send + Sync {
    // Required methods
    fn sign<'life0, 'life1, 'async_trait>(
        &'life0 self,
        doc: &'life1 SignDoc,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn public_key<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<PublicKey, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;

    // Provided methods
    fn public_key_as_proto<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Any, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait { ... }
    fn signer_info<'life0, 'async_trait>(
        &'life0 self,
        sequence: u64,
        sign_mode: SignMode,
    ) -> Pin<Box<dyn Future<Output = Result<SignerInfo, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait { ... }
}

Required Methods§

fn sign<'life0, 'life1, 'async_trait>( &'life0 self, doc: &'life1 SignDoc, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

fn public_key<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<PublicKey, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Provided Methods§

fn public_key_as_proto<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Any, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn signer_info<'life0, 'async_trait>( &'life0 self, sequence: u64, sign_mode: SignMode, ) -> Pin<Box<dyn Future<Output = Result<SignerInfo, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§