Closed husio closed 5 years ago
I think I am missing bits conversion part. It all makes more sense when looking at the encoding example where the bits encoding is used as well https://github.com/btcsuite/btcutil/blob/master/bech32/example_test.go#L32-L49
In your example, you aren't converting to base 5 before decoding.
I have noticed that decoding done with
bech32.Decode
returns different result than https://github.com/nym-zone/bech32The below diff is adding a test that proves that