-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
LND menu: show XPUBs and sign PSBT #2192
Comments
Be careful that the HD Root key is the master PRIVATE key of the onchain part of the LND wallet.
For recovery scenarios there is the process described in: Also when funding the wallet from electrum the UTXO might not be picked up by LND without a rescan. Overall would discourage doing something like this. To avoid this process entirely now the AEZEED seed can directly be imported to BlueWallet (available on Android, iOS and Mac: https://bluewallet.io/). |
i just tried :
Then to get the onchain raspiblitz xpub :
and it works ! i can see, in a read only wallet for example, the correct funds of my raspiblitz on-chain wallet.
this was not working, maybe we don't talk about the same thing. :s |
This sounds like a good tool to add to the menu - but would need a bit of SSH-GUI and testing aorund it .. so I push this to v1.8.1 for now because of time prio. If some like to contribute a script or extend the |
Just leaving a hint here that with |
@guggero this is a very useful new function to create watch only wallets and construct PSBTs externally.
and a number of them has used addresses and even private keys. The internal wallet has 5 UTXOs currently and shows keys on these paths:
Update - after scanning with Sparrow Wallet:
has all the 5 UTXOs in the LND wallet - all from channel closes.
has 3 transactions from 2019. One deposit and 2 channel opens (the second emptied the account with the change going to another account) - is this some deprecated behaviour of the LND onchain wallet? |
You only need the following paths:
Everything below the |
Thank you for the explanation, that's a very useful new feature! |
I forgot to answer the last question. Am I correct in assuming that the three transactions were actually on the |
No, those 3 transactions are in `m/1017'/0'/0'. The first is strange: |
shows only the accounts needed and no internals. |
To sign a PSBT:
Will need to use: Then to publish (do it via LND to avoid any issues):
Will use: |
OK fpor RaspiBlitz v1.9.0 LND menu will simply show the information of
and tell people to report their experience bac to this issue. Pushing it to v1.10 milestone to improve on that feedback & for the PSBT part. |
Multiple people are asking how to get the xPub of LND on-chain wallet (to use with BTCPayServer for example). As far I was able to research its not a standard function of LND to export this. But Olli gave a hint that its a function of chantools.
lightningnetwork/lnd#2373 (comment)
So as a quick helper we can show the xpub in the SSH menu/status of chantools (once installed over SERVICES).
The derivation path of LND seems to be
m/1017'/0'/6'/0/0
- see lightningnetwork/lnd#732 (comment)The text was updated successfully, but these errors were encountered: