copy from SSD?
only change algo
Surely not. It's a fairly direct copy of Icebergcoin, including the clumsy cut'n'paste ...
https://github.com/darktoken/darktoken/blob/master/src/test/key_tests.cpp#L41
for (int nCompressed=0; nCompressed<2; nCompressed++)
{
bool fCompressed = nCompressed == 1;
printf(" * %s:\n", fCompressed ? "compressed" : "uncompressed");
CIcebergcoinSecret bsecret;
bsecret.SetSecret(secret, fCompressed);
printf(" * secret (base58): %s\n", bsecret.ToString().c_str());
CKey key;
key.SetSecret(secret, fCompressed);
vector vchPubKey = key.GetPubKey();
printf(" * pubkey (hex): %s\n", HexStr(vchPubKey).c_str());
printf(" * address (base58): %s\n", CIcebergcoinAddress(vchPubKey).ToString().c_str());
}
}
Cheers
Graham