-
Notifications
You must be signed in to change notification settings - Fork 168
Support conversion of multi-Xprivs into multi-Xpubs #757
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 conversion of multi-Xprivs into multi-Xpubs #757
Conversation
Possible when all hardened derivation steps are shared among all paths (or if there are none). Errors otherwise.
93a71d7 to
7d3e1e8
Compare
apoelstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 7d3e1e8; successfully ran local tests; the stringly-typed errors are OK since this module is full of them
|
Would like @sanket1729 to take a quick look at this before acking to sanity-check it. In particular this forbits multixpubs where there are hardened derivations after the split. I assume this is a requirement to be a legal multixpub? Because there isn't any obvious reason we should be forced to have this limit. |
Correct, this is a limitation imposed by the current |
|
Added another commit with some formatting changes that also updates the existing |
sanket1729
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sanket1729
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK ae64ce6
apoelstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK ae64ce6; successfully ran local tests; the stringly-typed errors are OK since this module is full of them
And add a simple example using it (https://min.sc/v0.3/#github=examples/taproot-psbt-multipath-simple) Implemented in an extension trait, pending rust-bitcoin/rust-miniscript#757.
And add a simple example using it (https://min.sc/v0.3/#github=examples/taproot-psbt-multipath-simple) Implemented in an extension trait, pending rust-bitcoin/rust-miniscript#757.
Implemented in an extension trait, pending rust-bitcoin/rust-miniscript#757.
…privs into multi-Xpubs
ae64ce617d0e1bed0e25edda1fa13108c37e27c0 Some minor formatting changes (Nadav Ivgi)
7d3e1e846ce75c86af3fed79300df5ce6247d404 Support conversion of multi-Xprivs into multi-Xpubs (Nadav Ivgi)
Pull request description:
Possible when all hardened derivation steps are shared among all paths (or if there are none). Errors otherwise.
ACKs for top commit:
sanket1729:
utACK ae64ce617d0e1bed0e25edda1fa13108c37e27c0
apoelstra:
ACK ae64ce617d0e1bed0e25edda1fa13108c37e27c0; successfully ran local tests; the stringly-typed errors are OK since this module is full of them
Tree-SHA512: 47d90831409b538d6b521b354696a5ed459eb45a036938d1f6fd59dca66254115abe65bca861de3428b285c0cbf7ae3591779cfdd6be0a2dc12b3b967e221b2d
Implemented in an extension trait, pending rust-bitcoin/rust-miniscript#757.
Possible when all hardened derivation steps are shared among all paths (or if there are none). Errors otherwise.