coinaddr icon indicating copy to clipboard operation
coinaddr copied to clipboard

Coinaddr does not recognize bech32 addresses

Open zyrikby opened this issue 6 years ago • 4 comments

Coinaddr incorrectly reports bech32 addresses (starting with bc1) as invalid.

zyrikby avatar Jan 09 '19 21:01 zyrikby

I have the same issue.

image

MariKiev avatar Sep 11 '19 23:09 MariKiev

@zyrikby @MariKiev I'm not sure if this is still an issue for you, but if so, can you help me better understand the problem? Is there a reproducible test case you can give me?

It's been a long time since I originally wrote this, so if you have any insight as to why this may be happening, or a possible fix, I'm all ears. Thx

joeblackwaslike avatar Oct 17 '22 15:10 joeblackwaslike

Hello, I have the same problem. I think that you are using base58 to verify bitcoin addresses. But Bech32 addresses (https://en.bitcoin.it/wiki/Bech32) are not necessary recognized as valid (they can contain characters base58 doesn't support)

Coinaddr is the best library I found, I hope you will be able to fix this

0xw01f avatar Oct 27 '22 17:10 0xw01f

Litecoin also supports bech32 address formats (beginning with ltc1), and these are also not recognized as valid for the same reason.

zjtalia avatar Feb 14 '23 14:02 zjtalia