pub trait Signer {
// 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) -> Address;
}Expand description
Trait for signing transactions and messages
Implement this trait to support different signing modes, e.g. hardware wallet, hosted etc.