Trait Signer

Source
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§

Source

fn public_key(&self) -> PublicKey

Source

fn sign_without_public_key(&self, message_hash: &impl IsHash) -> SignatureV1

Source

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.

Implementations on Foreign Types§

Source§

impl<'a, S> Signer for &'a S
where S: Signer,

Source§

fn public_key(&self) -> PublicKey

Source§

fn sign_without_public_key(&self, message_hash: &impl IsHash) -> SignatureV1

Source§

fn sign_with_public_key( &self, message_hash: &impl IsHash, ) -> SignatureWithPublicKeyV1

Implementors§