Addresses (partially) #16779 - no GUI change in this PR
Adds a LocateError function the bech32 library, which is then called by validateaddress
RPC, (and then eventually from a GUI tool too, future work). I think modifying validateaddress is nicer than adding a separate RPC for this.
Includes tests.
Based on https://github.com/sipa/bech32/blob/master/ecc/javascript/bech32_ecc.js Credit to sipa for that code