Trait RecoveryKeys

Source
pub trait RecoveryKeys {
    type Signer: RecoverySign;

    // Required methods
    fn iter(&self) -> Iter<Self::Signer> ;
    fn sign_onchain_tx(
        &self,
        tx: &Transaction,
        segwit_flags: &[bool],
        ipaths: &Vec<Vec<u32>>,
        prev_outs: &Vec<TxOut>,
        uniclosekeys: Vec<Option<(SecretKey, Vec<Vec<u8>>)>>,
        opaths: &Vec<Vec<u32>>,
    ) -> Result<Vec<Vec<Vec<u8>>>, Status>;
    fn wallet_address_native(&self, index: u32) -> Result<Address, Status>;
    fn wallet_address_taproot(&self, index: u32) -> Result<Address, Status>;
}
Expand description

Provide enough signer functionality to force-close all channels in a node

Required Associated Types§

Required Methods§

Source

fn iter(&self) -> Iter<Self::Signer>

Source

fn sign_onchain_tx( &self, tx: &Transaction, segwit_flags: &[bool], ipaths: &Vec<Vec<u32>>, prev_outs: &Vec<TxOut>, uniclosekeys: Vec<Option<(SecretKey, Vec<Vec<u8>>)>>, opaths: &Vec<Vec<u32>>, ) -> Result<Vec<Vec<Vec<u8>>>, Status>

Source

fn wallet_address_native(&self, index: u32) -> Result<Address, Status>

Source

fn wallet_address_taproot(&self, index: u32) -> Result<Address, Status>

Implementors§