BIP375: validate PSBT_OUT_SP_V0_LABEL length #2286

pull wangjingshuiku wants to merge 1 commits into bitcoin:master from wangjingshuiku:master changing 3 files +18 −0
  1. wangjingshuiku commented at 9:01 AM on September 12, 2026: none

    This PR updates the BIP-375 reference validator to enforce the serialized length of PSBT_OUT_SP_V0_LABEL.

    BIP-375 defines the field value as a 32-bit little-endian unsigned integer, so PSBT_OUT_SP_V0_LABEL must contain exactly 4 bytes. Previously, the validator only checked that PSBT_OUT_SP_V0_LABEL requires PSBT_OUT_SP_V0_INFO, allowing malformed values such as a one-byte label when valid SP_V0_INFO was present.

  2. BIP375: validate PSBT_OUT_SP_V0_LABEL length 7ccde10a3c
Contributors

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-09-14 22:10 UTC

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