Open youngqqcn opened 3 years ago
Hi, thanks for bringing this up.
Several months ago, Pieter Wuille recommended that the bech32 algorithm be slightly changed to improve certain properties of the encoding: https://gist.github.com/sipa/a9845b37c1b298a7301c33a04090b2eb
Due to that recommendation, we have updated our c++ and java implementations: https://github.com/dcdpr/libbech32/commit/698cd6d671d321f69c749cdb5748d4db5445d1f3 and https://github.com/dcdpr/libbech32-java/commit/1d188e800cd02bce764398b8e3f031306864ed40
It does not appear that the python bech32 library you refer to has made that update yet: https://github.com/fiatjaf/bech32/blob/master/bech32/__init__.py#L46
I use python bech32 library
pip3 install bech32
6 char checksum is different