Closed mahnunchik closed 8 months ago
https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#bech32
The human-readable part, which is intended to convey the type of data, or anything else that is relevant to the reader. This part MUST contain 1 to 83 US-ASCII characters
Current implementation allows to do:
console.log(bech32.encode('', [])) // 10a06t8
But decode fails with error:
console.log(bech32.decode('10a06t8'))
https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#bech32
Current implementation allows to do:
But decode fails with error: