pub trait KeypairSigner:
Send
+ Sync
+ Sized
+ Clone {
// Required methods
fn account(&self) -> AccountId;
fn sign(&self, message: &[u8]) -> MultiSignature;
fn from_string(s: &str, password_override: Option<&str>) -> Result<Self>;
// Provided method
fn verify<M: AsRef<[u8]>>(
&self,
_sig: &MultiSignature,
_message: M,
) -> Result<bool> { ... }
}
Required Methods§
fn account(&self) -> AccountId
fn sign(&self, message: &[u8]) -> MultiSignature
fn from_string(s: &str, password_override: Option<&str>) -> Result<Self>
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.