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§

source

fn address(&self) -> Address

Return the address of the signer.

source

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.

Implementors§

source§

impl Signer for Identity

Implements Signer trait for Identity

source§

impl Signer for Account