Skip to content

[BIP 174] PSBT version, proprietary, and xpub fields#17034

Merged
laanwj merged 15 commits intobitcoin:masterfrom
achow101:bip174-extensions
Dec 10, 2021
Merged

[BIP 174] PSBT version, proprietary, and xpub fields#17034
laanwj merged 15 commits intobitcoin:masterfrom
achow101:bip174-extensions

Conversation

@achow101
Copy link
Member

@achow101 achow101 commented Oct 3, 2019

Implements the changes to BIP 174 proposed in bitcoin/bips#849 and bitcoin/bips#784

Implements PSBT_GLOBAL_VERSION, PSBT_GLOBAL_PROPRIETARY, PSBT_IN_PROPRIETARY, PSBT_OUT_PROPRIETARY, and PSBT_GLOBAL_XPUB. The PSBT_GLOBAL_XPUB changes are merged in from #16463.

Also includes the test vectors added to BIP 174 for these fields.

A number of additional changes to keypath and xpub serialization are made to support PSBT_GLOBAL_XPUB.

@DrahtBot
Copy link
Contributor

DrahtBot commented Oct 3, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #23718 (PSBT: hash preimages fields by darosior)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

Copy link
Member

@instagibbs instagibbs left a comment

Choose a reason for hiding this comment

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

cursory review ACK

src/psbt.h Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Manually inspected that all the fields with constant types are now being written with compact size, but I would like to be more systematic somehow in the future.

Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

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

ACK 7f066240654608743eee165149f7036f43791922

Here is a rebase: https://github.com/darosior/bitcoin/tree/bip174-extensions .

I also have a branch implementing the various hash preimage input types, since it is needed for Miniscript signing support. Here it is rebased on this one since i figured it might make sense to have other input types implementations in this PR as well.

@achow101 achow101 force-pushed the bip174-extensions branch 2 times, most recently from fd20409 to 198b080 Compare December 8, 2021 14:48
Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

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

re-ACK 198b080f1f5ddc7b698f6f6f3def4511ab2b4b83

@Sjors
Copy link
Member

Sjors commented Dec 10, 2021

re-utACK e75e52f7a2a82e24b20f59255cf39809342fcf58

Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

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

re-ACK e75e52f7a2a82e24b20f59255cf39809342fcf58

@laanwj
Copy link
Member

laanwj commented Dec 10, 2021

Code review ACK 8152117

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants