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

PSBT types are now constants #530

Merged
merged 2 commits into from Dec 15, 2020
Merged

PSBT types are now constants #530

merged 2 commits into from Dec 15, 2020

Conversation

dr-orlovsky
Copy link
Collaborator

@dr-orlovsky dr-orlovsky commented Dec 5, 2020

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

/// 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;
Copy link
Member

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, doing that

Copy link
Collaborator Author

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)

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack 881f4d7

@justinmoon
Copy link

ACK 881f4d7

Copy link
Contributor

@sgeisler sgeisler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack 881f4d7

Copy link
Collaborator

@stevenroose stevenroose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 881f4d7

@stevenroose stevenroose merged commit 6df16b7 into rust-bitcoin:master Dec 15, 2020
@dr-orlovsky dr-orlovsky mentioned this pull request Dec 15, 2020
@dr-orlovsky dr-orlovsky added this to Done in PSBT Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PSBT
Done
Development

Successfully merging this pull request may close these issues.

None yet

6 participants