Hashcash-based identity, work in progress... committing to test speed on other boxes.
This commit is contained in:
parent
588a47be89
commit
b0187f4472
6 changed files with 51 additions and 114 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue