Describe the bug
When using TWBitcoinAddressIsValidString to verify a correct BTC Taproot address or a SegWit address, the return result is NO, which should be right.
To Reproduce
Steps to reproduce the behavior:
use the latest version TrustWalletCore (4.0.40)
try to verify a BTC Taproot address and a SegWit address:
NSLog(@"--== btc: %d", TWBitcoinAddressIsValidString(TWStringCreateWithUTF8Bytes(@"bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq".UTF8String)));
NSLog(@"--== btc: %d", TWBitcoinAddressIsValidString(TWStringCreateWithUTF8Bytes(@"bc1p5d7rjq7g6rdk2yhzks9smlaqtedr4dekq08ge8ztwac72sfr9rusxg3297".UTF8String)));
the results are both "NO"
Expected behavior
The results are both "YES" as these are valid addresses.
Describe the bug When using TWBitcoinAddressIsValidString to verify a correct BTC Taproot address or a SegWit address, the return result is NO, which should be right.
To Reproduce Steps to reproduce the behavior:
Expected behavior The results are both "YES" as these are valid addresses.