I have a Core Lightning node with multiple closed channel outputs, and I don’t wish to open new channels with these.
For backup reasons and for ease of use of the Bitcoin Core user interface I’d like to export these outputs and import them into a Bitcoin Core wallet.
I tried exporting the on chain descriptor using hsmtool --dumponchaindescriptors --show-secrets and importing it into Bitcoin Core using bitcoin-cli importdescriptors, but it seems that the private keys for closed channels are calculated using a complicated combination of information related to the lightning node which are not available from the descriptors alone (see https://bitcoin.stackexchange.com/a/90719).
How can I export the private keys of each individual on chain fund output so that I can import them into Bitcoin Core?










