Trait dcl_crypto::account::Signer
source · pub trait Signer {
// Required methods
fn address(&self) -> Address;
fn sign<M: AsRef<[u8]>>(&self, message: M) -> PersonalSignature;
}
Expand description
A trait for signing messages with an associated address.
Required Methods§
sourcefn sign<M: AsRef<[u8]>>(&self, message: M) -> PersonalSignature
fn sign<M: AsRef<[u8]>>(&self, message: M) -> PersonalSignature
Sign a message with the Address’s private key.
Object Safety§
This trait is not object safe.