pub trait Signer {
// Required methods
fn sign(&self, msg: &str) -> Result<Signature, Box<dyn Error>>;
fn signer(&self) -> String;
}Required Methods§
fn sign(&self, msg: &str) -> Result<Signature, Box<dyn Error>>
fn signer(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".