-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
// List of altcoins and their base58 prefixes
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// List of altcoins and their base58 prefixes | ||
|
||
//Bitcoin | ||
//from https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L104 | ||
|
||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,0); | ||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5); | ||
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,128); | ||
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E}; | ||
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4}; | ||
|
||
// Ethereum | ||
//from: | ||
|
||
//Bitcoin Cash (Bitcoin ABC) | ||
//From: https://github.com/Bitcoin-ABC/bitcoin-abc/blob/master/src/chainparams.cpp | ||
|
||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1, 0); | ||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1, 5); | ||
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1, 128); | ||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x88)(0xB2)(0x1E).convert_to_container<std::vector<unsigned char>>(); | ||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x88)(0xAD)(0xE4).convert_to_container<std::vector<unsigned char>>(); | ||
|
||
//Ripple | ||
//from: | ||
|
||
//IOTA | ||
//from: | ||
|
||
|
||
|
||
//Doge | ||
//from: https://github.com/dogecoin/dogecoin/blob/master/src/chainparams.cpp#L132 | ||
|
||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,30); // 0x1e | ||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,22); // 0x16 | ||
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,158); // 0x9e | ||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x02)(0xfa)(0xca)(0xfd).convert_to_container<std::vector<unsigned char> >(); | ||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x02)(0xfa)(0xc3)(0x98).convert_to_container<std::vector<unsigned char> >(); | ||
|
||
|
||
//Dash | ||
//from https://github.com/dashpay/dash/blob/master/src/chainparams.cpp#L168 | ||
|
||
// Dash addresses start with 'X' | ||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,76); | ||
// Dash script addresses start with '7' | ||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,16); | ||
// Dash private keys start with '7' or 'X' | ||
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,204); | ||
// Dash BIP32 pubkeys start with 'xpub' (Bitcoin defaults) | ||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x88)(0xB2)(0x1E).convert_to_container<std::vector<unsigned char> >(); | ||
// Dash BIP32 prvkeys start with 'xprv' (Bitcoin defaults) | ||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x88)(0xAD)(0xE4).convert_to_container<std::vector<unsigned char> >(); | ||
// Dash BIP44 coin type is '5' | ||
base58Prefixes[EXT_COIN_TYPE] = boost::assign::list_of(0x80)(0x00)(0x00)(0x05).convert_to_container<std::vector<unsigned char> >(); | ||
|
||
|