Progress on bech32 for future Segwit Versions (BIP-173)



Summary:

In a recent message to the bitcoin-dev mailing list, Rusty Russell proposed an alternative to length restrictions suggested by Russell in a BIPs pull request. The proposed alternative suggests using a checksum change based on the first byte, unless the first byte is 0. The first proposal would restrict future segwit versions and may require new encoding if a different length is needed. The second proposal would weaken guarantees against typos in the first two data-part letters to 1 in a billion and be less backward compatible. Russell stated that he prefers the second option because it forces upgrades since it breaks so clearly. However, Dave argued that the second option does not force upgrades but creates another opt-in address format that means we will spend several years with every wallet having two address buttons. Dave prefers the backwards compatible proposal from BIPs PR#945 and consensus restrict v1 witness program size to maximize safety. By the time segwit v2 is used, most software will have implemented length limits and additional consensus restrictions will not be necessary.


Updated on: 2023-06-14T16:07:00.055739+00:00