Trait bdk_wallet::signer::SignerCommon
source · pub trait SignerCommon: Debug + Send + Sync {
// Required method
fn id(&self, secp: &Secp256k1<All>) -> SignerId;
// Provided method
fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey> { ... }
}
Expand description
Common signer methods
Required Methods§
Provided Methods§
sourcefn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
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).