forked from ryanralph/altcoin-address
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bech32 addresses for testnet and mainnet #61
Comments
Yes, I faced the same problem |
That's because of wallet-address-validator/src/crypto/segwit_addr.js Lines 73 to 88 in bcd0c8f
which tries both prefixes, bc and tb .
|
Also, I think we should check address prefix before making any further calculations. |
#70 seems to fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
As stated here bech32 address uses "bc" for mainnet and "tb" for testnet.
This library marks both to be valid in both testnet and mainnet
The text was updated successfully, but these errors were encountered: