Skip to content

Conversation

@madoke
Copy link
Contributor

@madoke madoke commented May 26, 2024

The isBtcAddress validator fails validation on the new taproot bitcoin address format (62 characters), as well as testnet addresses.

This PR adds support for the testnet prefixes listed in (this article) as well as the new taproot addresses (Bech32m) which are very similar to Bech32.

In addition, the characters 1 b i o were removed from the regex because they're not part of the Bech32 alphabet.

Let me know what you think !

@profnandaa
Copy link
Member

Thanks for your contrib! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants