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 02779b7 commit 5b7220a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TestUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
#include <thread>
#include "third_party/catch.hpp"

#include <iostream>


using namespace jsonrpc;
using namespace std;
Expand Down Expand Up @@ -812,7 +814,11 @@ void TestUtils::doDKGV2(StubClient &c, int n, int t,
std::vector<std::shared_ptr< BLSPublicKeyShare> > allPubKeysFromServer(n);
for (int i = 0; i < n; i++) {
std::string publicKeyStr = allPubKeysJson["result"]["publicKeys"][i].asString();
std::cout << "PK: " << publicKeyStr << '\n';
vector<string> pubKeyVect = splitString( publicKeyStr.c_str(), ':' );
for (size_t j = 0; j < pubKeyVect.size(); ++j) {
std::cout << pubKeyVect[j] << ' ';
}
CHECK_STATE(pubKeyVect.size() == 4);
BLSPublicKeyShare pubKey(make_shared<vector<string>>(pubKeyVect), t, n);

Expand Down

0 comments on commit 5b7220a

Please sign in to comment.