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

DEMO: Hack the plan module #750

Closed

Conversation

tcharding
Copy link
Member

@tcharding tcharding commented Sep 20, 2024

This is not a merge candidate but is just an investigation of the benefits of having a new psbt-v0 crate.

The plan module currently includes a method on Plan that takes a psbt::Input as parameter. We would like to be able to either deprecate or remove the psbt module. In order to do so we would need to solve this problem. Here is one quick and dirty solution:

  • Make the private Plan fields public
  • Delete the method and make a standalone function in psbt-v0

This is related to rust-bitcoin/rust-bitcoin#3210 and was created to test https://github.com/tcharding/rust-psbt-v0/pull/6 and bitcoindevkit/bdk#1621

The `plan` module currently includes a method on `Plan` that takes a
`psbt::Input` as parameter. We would like to be able to either
deprecate or remove the `psbt` module. In order to do so we would need
to solve this problem. Here is one quick and dirty solution:

- Make the private `Plan` fields public
- Delete the method and make a standalone function in `psbt-v0`
@apoelstra
Copy link
Member

I would prefer a solution that just depended on psbt-v0 here and kept the API intact (other than changing the types).

@tcharding
Copy link
Member Author

Ha! I jumped out of bed this morning after having that exact thought, does that mean I'm brilliant or you are?

@tcharding
Copy link
Member Author

tcharding commented Sep 20, 2024

Would you be open to adding public re-exports of bitcoin::psbt stuff here and doing a minor release? I wrote this idea here: bitcoindevkit/bdk#1621 (comment)

Only if this whole thing gets traction though of course.

@tcharding
Copy link
Member Author

Decided not to import miniscript stuff.

@tcharding tcharding closed this Sep 23, 2024
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

Successfully merging this pull request may close these issues.

2 participants