BIP-352: add test vector for edge case - input key intermediate sum zero #2142

pull macgyver13 wants to merge 1 commits into bitcoin:master from macgyver13:bip352-intermediate-sum changing 1 files +134 −0
  1. macgyver13 commented at 2:45 PM on April 15, 2026: contributor

    @shuv-amp discovered this edge case and reported to bdk-sp and BlueWallet.

    Exercises [A, -A, A] input key pattern where the intermediate sum hits zero after the first two keys, but the final sum is non-zero. Implementations that validate after each pairwise addition (rather than summing all keys first) will incorrectly reject this case. @theStack - the reference implementation summation handles this case correctly as-is

  2. BIP-352: add test vector for edge case - input key intermediate sum zero
    Exercises [A, -A, A] input key pattern where the intermediate sum
    hits zero after the first two keys, but the final sum is non-zero.
    Implementations that validate after each pairwise addition (rather
    than summing all keys first) will incorrectly reject this case.
    eaa80d312c
  3. murchandamus added the label Proposed BIP modification on Apr 15, 2026
  4. murchandamus added the label Pending acceptance on Apr 15, 2026
  5. theStack commented at 9:53 AM on April 16, 2026: contributor

    Concept ACK

    Thanks for adding! Can you add a brief entry to the changelog with bumped PATCH version?

  6. murchandamus removed the label Pending acceptance on Apr 16, 2026

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-16 15:10 UTC

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