Trait SpendableKeysInterface

Source
pub trait SpendableKeysInterface:
    NodeSigner
    + SignerProvider
    + Send
    + Sync {
    // Required methods
    fn spend_spendable_outputs(
        &self,
        descriptors: &[&SpendableOutputDescriptor],
        outputs: Vec<TxOut>,
        change_destination_script: ScriptBuf,
        feerate_sat_per_1000_weight: u32,
        secp_ctx: &Secp256k1<All>,
    ) -> Result<Transaction>;
    fn get_sweep_address(&self) -> Address;
}

Required Methods§

Source

fn spend_spendable_outputs( &self, descriptors: &[&SpendableOutputDescriptor], outputs: Vec<TxOut>, change_destination_script: ScriptBuf, feerate_sat_per_1000_weight: u32, secp_ctx: &Secp256k1<All>, ) -> Result<Transaction>

Source

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.

Implementors§