Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Liquid wrong derivation path/addresses #5967

Open
1 task done
marcocattaneogotam opened this issue May 2, 2024 · 5 comments
Open
1 task done

[Bug]: Liquid wrong derivation path/addresses #5967

marcocattaneogotam opened this issue May 2, 2024 · 5 comments

Comments

@marcocattaneogotam
Copy link

What is your BTCPay version?

I'm running BTCPay Server v1.13.1+ca55e1f30****

How did you deploy BTCPay Server?

I'm running BTCPay Server on a VPN, enabling LBTC native support.

What happened?

I've imported a LIQUID hot wallet seedphrase in btcpay but addresses don't match with Green's ones. BTCPay shows a m/84'/1776'/0' derivation path for a native segwit account. Why? Also if I manually change the dev path, addresses don't change.

Alternatively, importing an XPUB via QR code, I get a list of liquid testnet VT*** addresses on the screen, again why?

How did you encounter this bug?

  1. enabled LBTC support 2. waited for Element core to be synced

Relevant log output

No response

What browser do you use?

No response

Additional information

No response

Are you sure this is a bug report?

  • I confirm this is a bug report
@NicolasDorier
Copy link
Member

There isn't any logic or standard for derivation paths. We picked one documented here https://github.com/satoshilabs/slips/blob/master/slip-0044.md

Also if I manually change the dev path

Yes, it doesn't change anything in the wallet's settings. This is only used for the PSBTs.

If you want your own path, try to import an output descriptors by "importing an existing wallet"., Then "Enter Extended Pubkey".

image

However, I really advise you against doing this for 2 reasons:

  1. It's easy to mess up
  2. Sharing a wallet with another software will probably cause gap limit issues
  3. Compatibility between the app and BTCPay isn't assured.

@NicolasDorier
Copy link
Member

Also, I think @Kukks worked on something to make things more compatible with Green. But I don't really know about it.
You may try to ping him on chat.btcpayserver.org.

@marcocattaneogotam
Copy link
Author

First of all, thank you for your response.

If the derivation path is not the same as Green's and cannot be customized, there is no way to spend the funds received, since BTCPay does not allow sending from the Liquid hot wallet.

@NicolasDorier
Copy link
Member

NicolasDorier commented May 8, 2024

@marcocattaneogotam you can through liquid's command line. When you create your hot wallet you need to import the keys in it.

image

There might be a way to be compatible with Green, you need to ask to @Kukks though.

@marcocattaneogotam
Copy link
Author

Oh I see.
By the way, Green uses a fair m/84'/0'/0'/0 derivation path 😁
Thanks all the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants