Skip to content

bech32 result is not right, maybe checksum exist bug #4

@youngqqcn

Description

@youngqqcn
String humanReadablePart = "hello";
char[] data = {14, 15, 3, 31, 13};
String b = Bech32.encode(humanReadablePart, data);
System.out.println(b);   
// "hello1w0rldcs7fw6" : "hello" + Bech32.separator + encoded data + 6 char checksum

I use python bech32 library

pip3 install bech32

>>> from bech32 import bech32_encode
>>> bech32_encode("hello", [14, 15, 3, 31, 13])
'hello1w0rld80pk3y'

6 char checksum is different

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions