Skip to content

Commit

Permalink
fix build after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Mar 22, 2023
1 parent 149a371 commit f1b2b25
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions zmq_src/ZMQClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,29 +545,16 @@ bool ZMQClient::generateBLSPrivateKey(const string &blsKeyName) {
dynamic_pointer_cast<generateBLSPrivateKeyRspMessage>(doRequestReply(p));
CHECK_STATE(result);
return result->getStatus() == 0;
}

Json::Value ZMQClient::getDecryptionShares(
const string &blsKeyName, const Json::Value &publicDecryptionValues) {
Json::Value p;
p["type"] = ZMQMessage::GET_DECRYPTION_SHARE_REQ;
p["blsKeyName"] = blsKeyName;
p["publicDecryptionValues"] =
publicDecryptionValues["publicDecryptionValues"];
auto result =
dynamic_pointer_cast<GetDecryptionShareRspMessage>(doRequestReply(p));
CHECK_STATE(result);
CHECK_STATE(result->getStatus() == 0);
return result->getShare();
}

std::string ZMQClient::popProve(const string &blsKeyName) {
Json::Value p;
p["blsKeyName"] = blsKeyName;
p["type"] = ZMQMessage::POP_PROVE_REQ;
auto result = dynamic_pointer_cast<popProveRspMessage>(doRequestReply(p));
CHECK_STATE(result);
CHECK_STATE(result->getStatus() == 0);
return result->getPopProve();
}
std::string ZMQClient::popProve(const string &blsKeyName) {
Json::Value p;
p["blsKeyName"] = blsKeyName;
p["type"] = ZMQMessage::POP_PROVE_REQ;
auto result = dynamic_pointer_cast<popProveRspMessage>(doRequestReply(p));
CHECK_STATE(result);
CHECK_STATE(result->getStatus() == 0);
return result->getPopProve();
}

uint64_t ZMQClient::getProcessID() { return syscall(__NR_gettid); }
uint64_t ZMQClient::getProcessID() { return syscall(__NR_gettid); }

0 comments on commit f1b2b25

Please sign in to comment.