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
PSBT types are now constants #530
Conversation
src/util/psbt/map/input.rs
Outdated
/// Type: Finalized scriptWitness PSBT_IN_FINAL_SCRIPTWITNESS = 0x08 | ||
const PSBT_IN_FINAL_SCRIPTWITNESS: u8 = 0x08; | ||
/// Type: RIPEMD160 preimage | ||
const PSBT_IN_RIPEMD160_PREIMAGES: u8 = 0x0a; |
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.
I think we should drop the _PREIMAGES
suffix here to match the BIP.
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.
Correct, doing that
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.
Done with a separate commit to simplify the review (what's changed)
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 881f4d7
ACK 881f4d7 |
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 881f4d7
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.
utACK 881f4d7
This does not create any external API changes, but is useful for code readability, internal consistency & future work, preventing from typos-type mistakes etc.
Part of PSBT/BIP32 refactoring epic #473