BIP-352: clarify silent payment address length #2271

pull notTanveer wants to merge 1 commits into bitcoin:master from notTanveer:fix/sp-addr-len changing 1 files +2 −2
  1. notTanveer commented at 11:05 AM on September 2, 2026: none

    the address length note only gave 117 chars as the number to check against, using a 3-char HRP as the example without saying mainnet uses "sp" (2 chars, 116 total).

  2. in bip-0352.mediawiki:210 in 66c0c6dbd9
     206 | @@ -207,7 +207,7 @@ A silent payment address is constructed in the following manner:
     207 |  *** The character "q", to represent a silent payment address of version 0
     208 |  *** The 66-byte concatenation of the receiver's public keys, ''ser<sub>P</sub>(B<sub>scan</sub>) || ser<sub>P</sub>(B<sub>m</sub>)''
     209 |  
     210 | -Note: [https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki BIP173] imposes a 90 character limit for Bech32 segwit addresses and limits versions to 0 through 16, whereas a silent payment address requires ''at least'' 117 characters<ref name="why_117_chars"> ''' Why do silent payment addresses need at least 117 characters?''' A silent payment address is a bech32m encoding comprised of the following parts:
     211 | +Note: [https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki BIP173] imposes a 90 character limit for Bech32 segwit addresses and limits versions to 0 through 16, whereas a silent payment address requires ''at least'' 116 characters for mainnet (117 characters for testnets, since the "tsp" HRP is 3 characters)<ref name="why_117_chars"> ''' Why do silent payment addresses need at least 116 (117 for testnets) characters?''' A silent payment address is a bech32m encoding comprised of the following parts:
    


    nymius commented at 12:14 PM on September 2, 2026:

    nit: the ref name can be changed too: why_116_chars


    notTanveer commented at 7:38 PM on September 2, 2026:

    done. thanks.

  3. nymius commented at 12:23 PM on September 2, 2026: contributor

    Verified with mainnet test vectors for sp codes.

    ACK 66c0c6dbd9183906f07de1607b053edba9bc891c

  4. clarify silent payment address length 2ec04a0fa1
  5. notTanveer force-pushed on Sep 2, 2026
  6. murchandamus added the label Fixups on Sep 4, 2026
  7. murchandamus commented at 5:19 AM on September 4, 2026: member

    LGTM, will merge in a few days if I don’t hear otherwise. cc: @theStack


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-10 02:10 UTC

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