Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Feb 22, 2024
1 parent cd419fc commit 02779b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions TestUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,10 +811,9 @@ void TestUtils::doDKGV2(StubClient &c, int n, int t,
auto allPubKeysJson = c.calculateAllBLSPublicKeys(publicSharesJson, t, n);
std::vector<std::shared_ptr< BLSPublicKeyShare> > allPubKeysFromServer(n);
for (int i = 0; i < n; i++) {
vector<string> pubKeyVect;
for (uint8_t j = 0; j < 4; j++) {
pubKeyVect.push_back(allPubKeysJson["result"]["publicKeys"][i][j].asString());
}
std::string publicKeyStr = allPubKeysJson["result"]["publicKeys"][i].asString();
vector<string> pubKeyVect = splitString( publicKeyStr.c_str(), ':' );
CHECK_STATE(pubKeyVect.size() == 4);
BLSPublicKeyShare pubKey(make_shared<vector<string>>(pubKeyVect), t, n);

allPubKeysFromServer[i] = make_shared<BLSPublicKeyShare>(pubKey);
Expand Down

0 comments on commit 02779b7

Please sign in to comment.