Trait fuels_core::traits::Signer

source ·
pub trait Signer: 'static {
    // Required methods
    fn sign<'life0, 'async_trait>(
        &'life0 self,
        message: Message,
    ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn address(&self) -> &Bech32Address;
}
Expand description

Trait for signing transactions and messages

Implement this trait to support different signing modes, e.g. hardware wallet, hosted etc.

Required Methods§

source

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

source

fn address(&self) -> &Bech32Address

Trait Implementations§

source§

impl Debug for dyn Signer + Send + Sync

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§