Author

Topic: Address generation "version" of cryptocurrencies (Read 729 times)

sr. member
Activity: 412
Merit: 287
If you don't have the source code to hand, or have an address for the specific currency and want to extract it from that, just pass it through a base58check decoding function. the first two characters (first byte) is the version byte.
full member
Activity: 148
Merit: 100
Crazy!
Thanks! You absolutely rocks!
hero member
Activity: 896
Merit: 527
₿₿₿₿₿₿₿
The version seems to be in the base58.h file, and on this page there is a list of the versions of many altcoins: https://github.com/zamgo/PHPCoinAddress
And this is where you find it inside a coin's source code: https://github.com/litecoin-project/litecoin/blob/master-0.8/src/base58.h#L275 (example)
full member
Activity: 148
Merit: 100
Crazy!
Hello,
Where can I find the "version" of the addresses in cryptocurrencies source code?
I'd like to be able to easily generate addresses for any of them by simply using this parameter.
Brainwallet provided me some, but can't find them in the currencies source codes.

Examples:
BTC/DVC/TRC => 0x00
DGC/DOGE => 0x1E
LTC => 0x30
etc.

Thanks!


NB: Yes, I'm working on a multicurrency wallet for http://coinplorer.com
Jump to: