psbt: clarify PSBT, PSBTInput, PSBTOutput unserialization flows #32419

pull rkrux wants to merge 1 commits into bitcoin:master from rkrux:psbt-deser changing 1 files +18 −9
  1. rkrux commented at 11:41 AM on May 5, 2025: contributor

    The unserialization flows of the PSBT types work based on few underlying assumptions of functions from serialize.h & stream.h that takes some to understand when read the first time.

    Add few comments that highlight these assumptions hopefully making it easier to grasp. Also, mention key/value format types as per BIP 174.

  2. psbt: clarify PSBT, PSBTInput, PSBTOutput unserialization flows
    The unserialization flows of the PSBT types work based on few underlying
    assumptions of functions from `serialize.h` & `stream.h` that takes some
    to understand when read the first time.
    
    Add few comments that highlight these assumptions hopefully making it easier
    to grasp. Also, mention key/value format types as per BIP 174.
    d31158d364
  3. DrahtBot commented at 11:41 AM on May 5, 2025: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32419.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK theStack, achow101
    Concept ACK w0xlt

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. DrahtBot added the label PSBT on May 5, 2025
  5. theStack commented at 4:55 PM on May 6, 2025: contributor

    Concept ACK

    Makes sense to me to provide at least a brief description of how the key data is structured and deserialized, since this is not intuitive at all (as I also noticed in the course of reviewing #31247 a while ago).

  6. w0xlt commented at 6:33 PM on May 7, 2025: contributor

    Concept ACK

    Agreed #32419 (comment)

  7. theStack approved
  8. theStack commented at 1:14 PM on May 9, 2025: contributor

    ACK d31158d3646f3c7e4832b9ca50f6ffe02800ff4c

    The introduced comments match my understanding of the deserialization of PSBT types and will hopefully help reviewing future code introduced/touched in this area. It's not ideal that the same comments are copied at three places, but don't have a better idea how to avoid this (still better to have duplicated documentation than no documentation).

  9. DrahtBot requested review from w0xlt on May 9, 2025
  10. achow101 removed review request from w0xlt on Oct 22, 2025
  11. achow101 requested review from achow101 on Oct 22, 2025
  12. achow101 commented at 9:53 PM on November 17, 2025: member

    ACK d31158d3646f3c7e4832b9ca50f6ffe02800ff4c

  13. DrahtBot requested review from w0xlt on Nov 17, 2025
  14. achow101 merged this on Nov 17, 2025
  15. achow101 closed this on Nov 17, 2025

  16. stringintech referenced this in commit 52fffa1e5d on Nov 24, 2025
  17. alexanderwiederin referenced this in commit 7334556a3f on Dec 1, 2025
  18. yuvicc referenced this in commit 4a77a3b8eb on Dec 16, 2025
  19. stickies-v referenced this in commit 9fa736f8e4 on Jan 22, 2026
  20. Kino1994 referenced this in commit fc086d6146 on Jun 28, 2026
  21. BigcoinBGC referenced this in commit 39849d066c on Jun 30, 2026
  22. Kino1994 referenced this in commit b6832c52b2 on Aug 19, 2026
  23. bitcoin locked this on Nov 17, 2026


achow101w0xlt

Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-23 05:51 UTC

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