|
@@ -157,11 +157,17 @@ bool make_reputation_proof(
|
|
|
std::vector<Proof> encryptedScoreProof;
|
|
|
EGCiphertext encryptedScore = get_server_committed_val<EGCiphertext>(rng, serverIPs, serverPorts, REQUEST_CLIENT_TALLY_URI, REQUEST_CLIENT_TALLY_COMMITMENT_URI, encryptedScoreProof, shortTermPublicKey, bandwidthData);
|
|
|
|
|
|
+ std::cout << "Loading encrypted score." << std::endl;
|
|
|
+
|
|
|
// Load this current encrypted score into client object
|
|
|
prsonaClient->receive_vote_tally(encryptedScoreProof, encryptedScore);
|
|
|
|
|
|
+ std::cout << "Converting encrypted score to an int." << std::endl;
|
|
|
+
|
|
|
// Choose a random (valid) threshold to make a proof for
|
|
|
mpz_class maxScore = prsonaClient->get_score().toInt();
|
|
|
+
|
|
|
+ std::cout << "Converting encrypted score to a usable int." << std::endl;
|
|
|
int maxScoreInt = 0;
|
|
|
while (maxScoreInt < maxScore)
|
|
|
maxScoreInt++;
|