What's the state of managing the LND/CLN onchain funds via external wallets/tools? I'd love to hook that up with BTCPay Server, so that they can share the hot wallet. Same goes for JoinMarket, but that's another story …
Discussion
btw nostr:npub1vadcfln4ugt2h9ruwsuwu5vu5am4xaka7pw6m7axy79aqyhp6u5q9knuu7 nostr:npub1vxpwwydpmmc4usmxf2zkr8shdjq888g532ydyls3nadxxd9wyx5ssjq5nd is it possible and safe to share and manage the JoinMarket wallet with external tools?
LND’s PSBT interface makes this simple. UTXO locking for its db makes it safe. I’ve had good luck integrating payjoin with LND :D
You can create transactions with external tools, there is PSBT signing support in wallet-tool.py.
Thanks. Thinking about it some more, the main use case can be solved with just receiving — so exporting the xpub to integrate it as a watch-only wallet in BTCPay works fine. More here nostr:nevent1qqszwf5n54lxlf73j9qu9crg7mh84gpzpy8y9unjarc4rl4a4t7lkqcfcxhd4
Lnd has had it for years
I think about a year ago I talked about this with Oliver and he said they discourage it. Started to do some research now, closest I could find was the key import. https://docs.lightning.engineering/lightning-network-tools/lnd/key_import
Yeah that's it
Thanks, this guide also has some more info, though that seems to be a bit older. https://www.lightningnode.info/technicals/restorelndonchainfundsinelectrum
I tried generating a xpub from CLN. Seemed impossible
See the lightning-hsmtool dumponchaindescriptors command: https://docs.corelightning.org/reference/lightning-hsmtool