Skip to main content

AbstractSigner

Trait AbstractSigner 

Source
pub trait AbstractSigner: Send + Sync {
    // Required methods
    fn address(&self) -> Address;
    fn sign_hash<'life0, 'async_trait>(
        &'life0 self,
        hash: B256,
    ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_eip712_digest<'life0, 'async_trait>(
        &'life0 self,
        digest: B256,
    ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait mirroring the expected abstract signer behavior in TS version.

Required Methods§

Source

fn address(&self) -> Address

Source

fn sign_hash<'life0, 'async_trait>( &'life0 self, hash: B256, ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn sign_eip712_digest<'life0, 'async_trait>( &'life0 self, digest: B256, ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§