Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: btc4ever on May 17, 2013, 02:35:28 AM



Title: Is there any way to differentiate between BTC vs LTC vs altcoinX addresses?
Post by: btc4ever on May 17, 2013, 02:35:28 AM
When working with multiple currencies, it would be nice to be able to validate addresses as belonging to one currency or another, eg:  this appears to be a valid LTC address but is not a valid BTC address.

So I guess this question can be divided into parts:

1) Given address Y that validates for currency X, will it also validate for currencies A,B,C...?

2) Given just address Y, is there any good way to identify the currency?    ( I doubt it )

I suspect the answer is that they are all the same and there is no way to know.  eg bitcoind will validate the same as litecoind the same as junkcoind, etc.   Hoping I am wrong...

thanks for your insights.


Title: Re: Is there any way to differentiate between BTC vs LTC vs altcoinX addresses?
Post by: Zeilap on May 17, 2013, 02:42:45 AM
https://en.bitcoin.it/wiki/List_of_address_prefixes (https://en.bitcoin.it/wiki/List_of_address_prefixes)


Title: Re: Is there any way to differentiate between BTC vs LTC vs altcoinX addresses?
Post by: btc4ever on May 17, 2013, 05:49:30 AM
Well that is good news.  thank-you Zeilap.

I notice that the list on that page does not include many/most of the recent altcoins.  This makes me wonder if those altcoin devs are aware of the address prefix, and (in general) are modifying them, or not.

Also, in some limited testing with litecoin testnet addresses, I see that they are prefixed with m, the same as bitcoin testnet.  So that means that any address identification routine based on the 1st byte would be unable to distinguish between BTC and LTC, unless I am missing something.

Just observations.  Thanks again for the pointer.

https://en.bitcoin.it/wiki/List_of_address_prefixes (https://en.bitcoin.it/wiki/List_of_address_prefixes)


Title: Re: Is there any way to differentiate between BTC vs LTC vs altcoinX addresses?
Post by: wumpus on May 17, 2013, 05:51:34 AM
I notice that the list on that page does not include many/most of the recent altcoins.  This makes me wonder if those altcoin devs are aware of the address prefix, and (in general) are modifying them, or not.
My guess is that simply no one is bothing to update the wiki. After all, there is a new altcoin every day :P