Make new identity hashcash algo memory hard, and tweak generation time a bit. Current hashcash cost should be overkill for what we need but still tolerable to users.

This commit is contained in:
Adam Ierymenko 2013-10-05 14:15:59 -04:00
commit bc715fbd51
5 changed files with 46 additions and 28 deletions

View file

@ -93,7 +93,7 @@ int main(int argc,char **argv)
return -1;
}
if (!id.locallyValidate(true)) {
if (!id.locallyValidate()) {
std::cerr << argv[2] << " FAILED validation." << std::endl;
return -1;
} else std::cout << argv[2] << " is a valid identity (full check performed)" << std::endl;