1 2 3 4 5 6
pub trait Signer<M: Sized> { type Error; type Signature; fn sign_message(&self, message: M) -> Result<Self::Signature, Self::Error>; }