Skip to content
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

AddressFormatException on valid address #11

Open
zhiying8710 opened this issue Jun 29, 2023 · 2 comments
Open

AddressFormatException on valid address #11

zhiying8710 opened this issue Jun 29, 2023 · 2 comments

Comments

@zhiying8710
Copy link

Address address = new DefaultAddressParser().parseAddress("ltc1pa0u8au25t74h6cwgh29wu5j6lgn4v7jtzucee2anvnsx94gnsgkqj07l78", BitcoinNetwork.MAINNET);
throws AddressFormatException
ltc1pa0u8au25t74h6cwgh29wu5j6lgn4v7jtzucee2anvnsx94gnsgkqj07l78 is from transaction https://blockchair.com/litecoin/transaction/5689a53b975fd6d5afe78bd3baf7e2002b0ad87660f37622e6c312eaf8d7cc3c

@pokkst
Copy link
Owner

pokkst commented Aug 13, 2023

At first glance that appears to be a Taproot address, which this library does not currently have support for I think. I can add it easily if needed, or you can look at bitcoinj's master branch for the relevant code.

@pokkst
Copy link
Owner

pokkst commented Aug 13, 2023

Actually, I think the library might have partial support for it. Didn't realize the last time I merged in upstream it had those changes. I will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants