Skip to main content

BlockSigner

Trait BlockSigner 

Source
pub trait BlockSigner {
    // Required methods
    fn sign(&self, header: &BlockHeader) -> Signature;
    fn public_key(&self) -> PublicKey;
}
Expand description

Trait which abstracts the signing of block headers with ECDSA signatures.

Production-level implementations will involve some sort of secure remote backend. The trait also allows for testing with local and ephemeral signers.

Required Methods§

Source

fn sign(&self, header: &BlockHeader) -> Signature

Source

fn public_key(&self) -> PublicKey

Implementors§