coinables / buidljs

A wrapper for bitcoinjs-lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

P2WPKH addresses are not valid

stl1988 opened this issue · comments

When I try to check a generated P2WPKH address on blockchain.com (former blockchain.info), it says "Illegal charakter 0 at position X" (where X is a certain position in the address).

Considering its base 58 format this should be very simple... It would help if you told us what character it's saying is illegal. Also make sure you're not copying and pasting spaces or other weird characters.

P2WPKH should not be confused with P2PKH, which is indeed Base58. P2WPKH are Segwit addresses using the new bech32 format. This is where the problem is. All Base58 addresses work just fine. Only the bech32 ones don't. Also for each generated bech32 address Blockchain.com always lists different illegal charakters at different positions. But no charakter which isn't allowed in bech32.

I've just noticed. Deep sorry because of that.