BIP352: align reference address decoding with silent payment rules #2288

pull ginavalent wants to merge 1 commits into bitcoin:master from ginavalent:master changing 2 files +62 −5
  1. ginavalent commented at 9:35 AM on September 13, 2026: none

    BIP 352 specifies that silent payment addresses use Bech32m encoding and defines forward-compatible address decoding rules for versions 0 through 30.

    The BIP352 reference implementation currently uses the generic SegWit decoder without checking the encoding type, which allows a Bech32 checksum for a silent payment address. It also rejects versions above 16 and passes the complete payload to the spend key parser instead of discarding extension data for future versions.

    Update the BIP352-specific decoder to:

    • require Bech32m encoding;
    • accept versions 0 through 30 and reject version 31;
    • require exactly 66 decoded bytes for version 0;
    • accept at least 66 decoded bytes for versions 1 through 30 and consume only the first 66 bytes.
  2. BIP352: align reference address decoding with silent payment rules
    Signed-off-by: ginavalent <ginavalent@outlook.com>
    c39bae2a3b
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