From 5bdc91ee47c7aa510c0e1d8eb6a1d5de414de445 Mon Sep 17 00:00:00 2001 From: notTanveer Date: Mon, 28 Sep 2026 18:51:40 +0530 Subject: [PATCH] bip352: add sprt as the regtest hrp --- bip-0352.mediawiki | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bip-0352.mediawiki b/bip-0352.mediawiki index a369555d83..de939e83d1 100644 --- a/bip-0352.mediawiki +++ b/bip-0352.mediawiki @@ -13,7 +13,7 @@ 2022-03-28: https://gnusha.org/pi/bitcoindev/CAPv7TjbXm953U2h+-12MfJ24YqOM5Kcq77_xFTjVK+R2nf-nYg@mail.gmail.com/ [bitcoin-dev] Silent Payments – Non-interactive private payments with no on-chain overhead 2022-10-11: https://gnusha.org/pi/bitcoindev/P_21MLHGJicZ-hkbC4DGu86c5BtNKiH8spY4TOw5FJsfimdi_6VyHzU_y-s1mZsOcC2FA3EW_6w6W5qfV9dRK_7AvTAxDlwVfU-yhWZPEuo=@protonmail.com/ [bitcoin-dev] Silent Payment v4 (coinjoin support added) 2023-08-04: https://gnusha.org/pi/bitcoindev/ZM03twumu88V2NFH@petertodd.org/ [bitcoin-dev] BIP-352 Silent Payments addresses should have an expiration time - Version: 1.1.1 + Version: 1.1.2 Requires: 340, 341, 350 @@ -203,7 +203,7 @@ A silent payment address is constructed in the following manner: * Let ''Bm = Bspend + hashBIP0352/Label(ser256(bscan) || ser32(m))·G'', where ''hashBIP0352/Label(ser256(bscan) || ser32(m))·G'' is an optional integer tweak for labeling ** If no label is applied then ''Bm = Bspend'' * The final address is a [https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki Bech32m] encoding of: -** The human-readable part "sp" for mainnet, "tsp" for testnets (e.g. signet, testnet) +** The human-readable part "sp" for mainnet, "tsp" for testnets (e.g. signet, testnet) and "sprt" for regtest ** The data-part values: *** The character "q", to represent a silent payment address of version 0 *** The 66-byte concatenation of the receiver's public keys, ''serP(Bscan) || serP(Bm)'' @@ -211,14 +211,14 @@ A silent payment address is constructed in the following manner: 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 ''' Why do silent payment addresses need at least 116 characters?''' A silent payment address is a bech32m encoding comprised of the following parts: -* HRP [2-3 characters] +* HRP [2-4 characters] * separator [1 character] * version [1-2 characters] * payload, 66 bytes concatenated pubkeys [ceil(66*8/5) = 106 characters] * checksum [6 characters] -For a silent payments v0 address, this results in a 116-character address when using the 2-character mainnet HRP ("sp"), or a 117-character address when using the 3-character testnet HRP ("tsp"). Future versions of silent payment addresses may add to the payload, which is why a 1023-character limit is suggested. and allows versions up to 31. Additionally, since higher versions may add to the data field, it is recommended implementations use a limit of 1023 characters (see [https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#checksum-design BIP173: Checksum design] for more details). +For a silent payments v0 address, this results in a 116-character address when using the 2-character mainnet HRP ("sp"), a 117-character address when using the 3-character testnet HRP ("tsp"), or a 118-character address when using the 4-character regtest HRP ("sprt"). Future versions of silent payment addresses may add to the payload, which is why a 1023-character limit is suggested. and allows versions up to 31. Additionally, since higher versions may add to the data field, it is recommended implementations use a limit of 1023 characters (see [https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#checksum-design BIP173: Checksum design] for more details). === Inputs For Shared Secret Derivation === @@ -505,6 +505,8 @@ The MAJOR version is incremented if changes to the BIP are introduc The MINOR version is incremented whenever the inputs or the output of an algorithm changes in a backward-compatible way or new backward-compatible functionality is added. The PATCH version is incremented for other changes that are noteworthy (bug fixes, test vectors, important clarifications, etc.). +* '''1.1.2''' (2026-09-28): +** Specify "sprt" as the human-readable part for regtest addresses. * '''1.1.1''' (2026-04-16): ** Add test vector "Input keys intermediate sum is zero but final sum is non-zero" * '''1.1.0''' (2026-03-02):