浏览代码

debugging reputation proof synchronization

tristangurtler 3 年之前
父节点
当前提交
182378bf04
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      prsona/src/networkClient.cpp

+ 6 - 0
prsona/src/networkClient.cpp

@@ -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++;