[WIP] Impl conversion from v2::Psbt to v0::Psbt#33
[WIP] Impl conversion from v2::Psbt to v0::Psbt#33DanGould wants to merge 3 commits intorust-bitcoin:masterfrom
Conversation
|
Hi @DanGould, either way is fine for me. I'm happy to merge and release this if you are using it but FYI I'm in the middle of re-writing a PSBTv2 crate from scratch that does not import all the If you want to look its here: https://github.com/tcharding/rust-psbt-v2 Its not nearly done but the to/from psbt version stuff is more or less done and the approach should be obvious. |
|
is the idea to use primitives instead of the full |
|
No, the |
|
I meant the opposite, that the PSBT crate depends only on primitives, and not rust-bitcoin |
|
Woops, we are talking around each other. The |
|
yes that does make sense. This crate still needs to depend on primitives since it uses e.g. |
|
Transitively yes, but |
Close #31
I implemented both
From<raw::Key>andraw::Key::into_v0in the first and second commits respectively. Let me know which design you think makes more sense, I tend to lean to the former but I wanted to show both to make a fully informed decision.