-
Notifications
You must be signed in to change notification settings - Fork 7
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
[WIP] Impl conversion from v2::Psbt to v0::Psbt #33
base: master
Are you sure you want to change the base?
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_v0
in 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.