[bug]: Questions about LND's derivation path of watch only wallet #9619
Unanswered
hanxianlong
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Unfortunately this is a consequence of the very much dated architecture of the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
I'd like to import several watch only account to LND, and these accounts are generated from different mnemonics. However, the [account]' of LND's p2tr address derivation path seems not seperated these watch only accounts from each other. But the account of them are 0、1、2...etc.
LND wallet: m/86'/0'/0'/0/0
watch only wallet A: m/86'/0'/1'/0/0
watch only wallet B: m/86'/0'/2'/0/0
Your environment
lnd
0.18.5-betaSteps to reproduce
Step1. Create a LND wallet (let's call it wallet A), and then create a new P2TR address with the command: lncli newaddress p2tr , and it derives a new p2tr address with the drivation path:m/86'/0'/0'/0/0
Step2. Import a watchonly wallet(let's call it wallet B, which is generated by another mnemonic) into LND with the following command: lncli wallet accounts import EXTENDED_PUBLIC_KEY B
, then create a new P2TR address with the following command:lncli newaddress --account B p2tr and then it derives a new p2tr address with the derivation path m/86'/0'/1'/0/0
Expected behaviour
Since wallet B is a completed new watchonly wallet, it has nothing to do with the wallet A, so I think wallet B's p2tr address derivation path's account index should not be related with wallet A.
That means, the watch only wallet's address derivation path's [account index]' should be 0, which is m/86'/0'/0'/0/0
Actual behaviour
account B p2tr and then it derives a new p2tr address with the derivation path m/86'/0'/1'/0/0
account B p2tr and then it derives a new p2tr address with the derivation path m/86'/0'/2'/0/0
Could anybody help me whether this is an issue/bug, or is it by design?
Beta Was this translation helpful? Give feedback.
All reactions