encoding/bech32/src/bch_bech32 library

Bitcoin Cash's Bech32 variant (CashAddr): a wider, ~40-bit checksum polynomial and a : separator instead of 1.

This needs Uint64, not plain int - and that's not about the double-precision 2^53 ceiling (40 bits is nowhere near that). The problem is narrower and sharper: JavaScript's native bitwise operators (<<, >>, &, ^) all coerce their operands through ToInt32/ ToUint32 first, i.e. they only operate correctly within 32 bits. This polynomial's chk value and mask both exceed 32 bits (chk >> 35, mask 0x07ffffffff is 35 bits), so on dart2js a plain-int version of this shifts/ANDs past the 32-bit boundary and silently corrupts the high bits - confirmed by an actual failing web test run (checksum came back as effectively all-zero). Uint64 keeps every limb genuinely 32-bit and does bitwise ops per-limb (see its own _safeShl32 doc comment for the same class of problem), which is exactly what avoids this.