Hashcash-based identity, work in progress... committing to test speed on other boxes.

This commit is contained in:
Adam Ierymenko 2013-10-05 06:00:47 -04:00
parent 588a47be89
commit b0187f4472
6 changed files with 51 additions and 114 deletions

View file

@ -101,7 +101,8 @@ public:
Utils::getSecureRandom(priv,kp.priv.size());
_calcPubED(kp); // do Ed25519 key -- bytes 32-63 of pub and priv
do {
++*((uint64_t *)priv);
++(((uint64_t *)priv)[1]);
--(((uint64_t *)priv)[2]);
_calcPubDH(kp); // keep regenerating bytes 0-31 until satisfied
} while (!cond(kp));
return kp;