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

Bitcoin address passes Litecoin test #50

Open
johnanisere opened this issue Dec 10, 2018 · 3 comments
Open

Bitcoin address passes Litecoin test #50

johnanisere opened this issue Dec 10, 2018 · 3 comments

Comments

@johnanisere
Copy link

johnanisere commented Dec 10, 2018

Why do Bitcoin addresses pass Litecoin address test?

Replicating this issue:

const bitcoinAddress="3Kv8t7Bg2iYe7uQh8AfcxtDT4Y6AwNJ2fK"

const valid =WAValidator.validate(bitcoinAddress, `LTC`);

if (valid) {
     console.log("This is a valid litecoin address")
}

@ejose19
Copy link

ejose19 commented Feb 17, 2019

This is a P2SH starting with 3 (old format) instead of M (new format) address, it's valid in both BTC and LTC.

See:

https://cryptofacilities.zendesk.com/hc/en-us/articles/360006040974-Litecoin-Address-Format
https://www.reddit.com/r/Bitcoin/comments/3bjsfs/psa_be_careful_when_sending_litecoin_to_an/

@jerlis
Copy link

jerlis commented May 27, 2019

bech32 bitcoin addresses pass Litecoin test too

@mayeaux
Copy link

mayeaux commented Feb 7, 2020

Should be able to close this issue

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

4 participants