Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Feb 22, 2024
1 parent 8c30422 commit 6bf7bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TestUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,15 +812,15 @@ void TestUtils::doDKGV2(StubClient &c, int n, int t,
for (int i = 0; i < n; i++) {
vector<string> pubKeyVect;
for (uint8_t j = 0; j < 4; j++) {
pubKeyVect.push_back(allPubKeysJson[i][j].asString());
pubKeyVect.push_back(allPubKeysJson["result"]]i][j].asString());
}
BLSPublicKeyShare pubKey(make_shared<vector<string>>(pubKeyVect), t, n);

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

for (size_t i = 0; i < n; ++i) {
BOOST_REQUIRE( allPubKeysFromServer[i] == pubKeyShares[i + 1] );
REQUIRE( allPubKeysFromServer[i] == pubKeyShares[i + 1] );
}

// create pub key
Expand Down

0 comments on commit 6bf7bc5

Please sign in to comment.