guillaumebonnot / bech32

C# implementation of bech32
12 stars 8 forks source link

Bech32Engine.Decode() failing on valid SegWit (bc1) Bitcoin addresses #1

Open Cryptopractor opened 6 years ago

Cryptopractor commented 6 years ago

This class seems to be choking on valid SegWit addresses emitted by Electrum.

The following address:

bc1q2n496yyjcm4g7xplrzx0c6h6gg94uflq5qtq25

Fails to decode with the message:

Invalid padding from 5 to 8 bits.

I have entered this address into a block explorer and it seems to be valid.

https://www.blockonomics.co/#/search?q=bc1q2n496yyjcm4g7xplrzx0c6h6gg94uflq5qtq25

epsi1on commented 2 years ago

I have same issue @guillaumebonnot can you please take a look? thanks