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.