소스 검색

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