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
Document PSBT roles and limitation #1100
Conversation
Do we really only support PSBT v0? Otherwise this looks good to me. |
We only support v0 for now. Any non zero version number errors as per bip-174 version numbers spec rust-bitcoin/src/util/psbt/map/global.rs Lines 163 to 182 in 9cfa9bd
|
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 896ca42
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 896ca42
896ca42 Document PSBT roles and limitation (DanGould) Pull request description: The READEME claims rust-bitcoin supports PSBT finalization, but really needs rust-miniscript for that. I think we should make this clear in this crate's PSBT examples as well. > > Understanding scripts and witnesses doesn't scream rust-miniscript to me. Miniscript crate is not the first place I'd look, since it's additional. > > We should probably add it to the README here or something. If I needed to deal with scripts or witnesses in any way beyond reserializing them or hashing scriptpubkeys into addresses, I'd immediately turn to Miniscript. You basically can't work on scripts without it, unless you are doing something very specific. > > >Anywhere there's PSBT code I expect a finalizer, even if it had documented limitations. > > Not to be too glib, but suppose we had a finalizer that just always returned an error, and was documented not to finalize any transactions. Would that meet your expectations? It is hard to do much more without Miniscript. > _Originally posted by apoelstra in rust-bitcoin/rust-bitcoin#630 (comment) ACKs for top commit: apoelstra: ACK 896ca42 tcharding: ACK 896ca42 Tree-SHA512: e71a65b8c04134d9b3406ea76bb915fa116e4a961f9f6cb24350422f9d550cba26a630e02f9ba352fae63076926532bc4bf2d1001488666a05f18d7774ddda9e
The READEME claims rust-bitcoin supports PSBT finalization, but really needs rust-miniscript for that. I think we should make this clear in this crate's PSBT examples as well.
Originally posted by apoelstra in #630 (comment)