pub trait Signer {
// Required methods
fn public_key(&self) -> PublicKey;
fn sign_without_public_key(&self, message_hash: &impl IsHash) -> SignatureV1;
fn sign_with_public_key(
&self,
message_hash: &impl IsHash,
) -> SignatureWithPublicKeyV1;
}
Required Methods§
fn public_key(&self) -> PublicKey
fn sign_without_public_key(&self, message_hash: &impl IsHash) -> SignatureV1
fn sign_with_public_key( &self, message_hash: &impl IsHash, ) -> SignatureWithPublicKeyV1
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.