fuels_core::traits

Trait 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§