I have been trying to scour through the code of various alt-cryptocurriencies but am unable to extract the prefix character of private key. Can someone help me point into the right direction of where i need to look for? Currently the importprivkey just removes any prefix code >=0X80 (bitcoin prefix)
I am aware of the work done by zamgo (
https://github.com/zamgo/PHPCoinAddress/blob/master/README.md). but would like to expand on that project to include various other curriecies as well.
Here is where I am so far
// base58.h: Litecoin public key prefixes
class CBitcoinAddress : public CBase58Data
{
public:
enum
{
PUBKEY_ADDRESS = 48, // Litecoin addresses start with L
SCRIPT_ADDRESS = 5,
PUBKEY_ADDRESS_TEST = 111,
SCRIPT_ADDRESS_TEST = 196,
};