Support conversion of multi-Xprivs into multi-Xpubs#757
Support conversion of multi-Xprivs into multi-Xpubs#757apoelstra merged 2 commits intorust-bitcoin:masterfrom
Conversation
Possible when all hardened derivation steps are shared among all paths (or if there are none). Errors otherwise.
93a71d7 to
7d3e1e8
Compare
|
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 |
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.