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

Support partial derivations in psbt #221

Open
stepansnigirev opened this issue Oct 11, 2022 · 0 comments
Open

Support partial derivations in psbt #221

stepansnigirev opened this issue Oct 11, 2022 · 0 comments

Comments

@stepansnigirev
Copy link
Collaborator

In some cases software wallets don't add a full derivation path to the psbt, but only last non-hardened derivation after known xpub. For example if normal derivation looks like m/84h/0h/0h/0/3 software that is using only xpub may provide only m/0/3 part. And fingerprint can be either a fingerprint of the xpub (btcpay) or a fingerprint filled with zeroes (blue wallet).
Makes sense to check if existing wallets can derive correct keys even with a short derivation. I think we can limit support to 2-index derivations.
I thought we had this supported but it looks like it's broken now, so also makes sense to add tests for it.

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

1 participant