pub trait SignerCommon: Debug + Send + Sync {
    fn id(&self, secp: &Secp256k1<All>) -> SignerId;

    fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey> { ... }
Expand description

Common signer methods

Required methods

Return the SignerId for this signer

The SignerId can be used to lookup a signer in the Wallet’s signers map or to compare two signers.

Provided methods

Return the secret key for the signer

This is used internally to reconstruct the original descriptor that may contain secrets. External signers that are meant to keep key isolated should just return None here (which is the default for this method, if not overridden).