Skip to main content

Signer

Trait Signer 

Source
pub trait Signer: Send + Sync {
    // Required methods
    fn sign(&self, message: &[u8]) -> Signature;
    fn public_key(&self) -> PublicKey;
    fn validator_id(&self) -> ValidatorId;
}

Required Methods§

Source

fn sign(&self, message: &[u8]) -> Signature

Source

fn public_key(&self) -> PublicKey

Source

fn validator_id(&self) -> ValidatorId

Implementors§