pub trait SpendableKeysInterface: NodeSigner + SignerProvider + Send + Sync {
// Required methods
fn spend_spendable_outputs(
&self,
descriptors: &[&SpendableOutputDescriptor],
outputs: Vec<TxOut>,
change_destination_script: Script,
feerate_sat_per_1000_weight: u32,
secp_ctx: &Secp256k1<All>
) -> Result<Transaction>;
fn get_sweep_address(&self) -> Address;
fn sign_from_wallet(
&self,
psbt: &PartiallySignedTransaction,
derivations: Vec<u32>
) -> PartiallySignedTransaction;
}
Required Methods§
fn spend_spendable_outputs( &self, descriptors: &[&SpendableOutputDescriptor], outputs: Vec<TxOut>, change_destination_script: Script, feerate_sat_per_1000_weight: u32, secp_ctx: &Secp256k1<All> ) -> Result<Transaction>
sourcefn get_sweep_address(&self) -> Address
fn get_sweep_address(&self) -> Address
Swept funds from closed channels are sent here This is implemented by setting the change destination to spend_spendable_outputs to this address.
sourcefn sign_from_wallet(
&self,
psbt: &PartiallySignedTransaction,
derivations: Vec<u32>
) -> PartiallySignedTransaction
fn sign_from_wallet( &self, psbt: &PartiallySignedTransaction, derivations: Vec<u32> ) -> PartiallySignedTransaction
Sign for the layer-1 wallet TODO can we use the derivation path in the psbt?