Review report

core: PR #36690

1 suggestion

Optional improvements

Link

[suggestion] · The 1023-character section overstates the checksum guarantee

Its header says there are no checksum collisions, but a later assertion demonstrates one after four character changes.

Location: src/test/bech32_tests.cpp:220 (head).

Details and suggested fix

The silent-payments section says “no checksum collision,” then changes four characters in valid_1023 and asserts that Decode(collision, CharLimit::SILENT_PAYMENTS) returns BECH32M. The narrower guarantee is that up to three changes in the data part cannot produce another valid checksum; the section also notes that LocateErrors positions are not guaranteed. Reword the header to describe the three-change guarantee.


Coverage details