BIP174: Deduplicate type definitions by introducing registry file #2135

pull murchandamus wants to merge 4 commits into bitcoin:master from murchandamus:2026-04-08-deduplicate-psbt-tables changing 2 files +284 −435
  1. murchandamus commented at 10:33 PM on April 8, 2026: member

    So far, each BIP defining new PSBT types or fields has included the new definitions both in its own BIP text and then replicated them in BIP174. This violates the Single Source of Truth paradigm and presents an obvious vector for mismatching information across BIPs. This PR proposes to make each BIP the sole authoritative source for the PSBT fields and types it introduces and extracts only the Name, keytype, and "Parent BIP" columns from BIP174 to a registry file that tracks all existing definitions to prevent clashes.

    This PR builds on BIP376’s #2089 which is anticipated to be published soon, and will be rebased thereafter.

  2. murchandamus added the label Proposed BIP modification on Apr 8, 2026
  3. murchandamus added the label Pending acceptance on Apr 8, 2026
  4. murchandamus force-pushed on Apr 8, 2026
  5. murchandamus force-pushed on Apr 8, 2026
  6. murchandamus marked this as a draft on Apr 8, 2026
  7. achow101 commented at 10:41 PM on April 8, 2026: member

    Copncept ACK

  8. murchandamus removed the label Pending acceptance on Apr 9, 2026
  9. in bip-0174.mediawiki:557 in d87c733821


    nymius commented at 1:06 PM on April 9, 2026:

    These lines conflict with the proposal.


    nymius commented at 1:08 PM on April 9, 2026:

    This line conflicts with the proposal.

  10. nymius commented at 1:09 PM on April 9, 2026: contributor

    Concept ACK

    From the specification perspective this is less prone to errors. On the other side, I think I'm still going to paste all the fields in a single table when checking implementations. But there is no reason for it to be done in this repository.

  11. murchandamus commented at 10:39 PM on April 9, 2026: member

    Thanks for the review @nymius, I’ll update when #2089 is published.

  12. BIP174: Deduplicate global type definitions 762e8c785b
  13. BIP174: Deduplicate input type definitions d71cd39f69
  14. BIP174: Deduplicate per-output type definitions 0a23dbf56a
  15. 174: Add changelog and version number d6ff1bec1d
  16. murchandamus force-pushed on Apr 13, 2026
  17. murchandamus commented at 3:16 PM on April 13, 2026: member

    I rebased this PR on the latest master after BIP 376 is now published per #2089.

    Changes:

    • Update the two sentences pointed out by @nymius to refer to the auxiliary file instead of the Specification
    • Touch-up the formatting of auxiliary registry table file
  18. murchandamus marked this as ready for review on Apr 13, 2026
  19. murchandamus requested review from achow101 on Apr 14, 2026
  20. murchandamus requested review from nymius on Apr 14, 2026
  21. guggero commented at 10:50 AM on April 14, 2026: contributor

    ACK d6ff1bec1d669fafd955f5d2aa4b4beeeab90e0a Removes duplication and makes it easier to see all types at a glance.


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 11:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me