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.