SKALE-3951 use v2 methods

parent 784064c3
...@@ -172,7 +172,7 @@ public: ...@@ -172,7 +172,7 @@ public:
static Json::Value dkgVerificationV2Impl(const string &_publicShares, const string &_ethKeyName, const string &_secretShare, int _t, int _n, int _index); static Json::Value dkgVerificationV2Impl(const string &_publicShares, const string &_ethKeyName, const string &_secretShare, int _t, int _n, int _index);
virtual Json::Value createBLSPrivateKeyV2Impl(const std::string& blsKeyName, const std::string& ethKeyName, const std::string& polyName, const std::string & SecretShare, int t, int n); static Json::Value createBLSPrivateKeyV2Impl(const std::string& blsKeyName, const std::string& ethKeyName, const std::string& polyName, const std::string & SecretShare, int t, int n);
static void printDB(); static void printDB();
......
...@@ -97,7 +97,7 @@ Json::Value getSecretShareReqMessage::process() { ...@@ -97,7 +97,7 @@ Json::Value getSecretShareReqMessage::process() {
auto t = getUint64Rapid("t"); auto t = getUint64Rapid("t");
auto n = getUint64Rapid("n"); auto n = getUint64Rapid("n");
auto pubKeys = getJsonValueRapid("publicKeys"); auto pubKeys = getJsonValueRapid("publicKeys");
auto result = SGXWalletServer::getSecretShareImpl(polyName, pubKeys, t, n); auto result = SGXWalletServer::getSecretShareV2Impl(polyName, pubKeys, t, n);
result["type"] = ZMQMessage::GET_SECRET_SHARE_RSP; result["type"] = ZMQMessage::GET_SECRET_SHARE_RSP;
return result; return result;
} }
...@@ -109,7 +109,7 @@ Json::Value dkgVerificationReqMessage::process() { ...@@ -109,7 +109,7 @@ Json::Value dkgVerificationReqMessage::process() {
auto idx = getUint64Rapid("index"); auto idx = getUint64Rapid("index");
auto pubShares = getStringRapid("publicShares"); auto pubShares = getStringRapid("publicShares");
auto secretShare = getStringRapid("secretShare"); auto secretShare = getStringRapid("secretShare");
auto result = SGXWalletServer::dkgVerificationImpl(pubShares, ethKeyName, secretShare, t, n, idx); auto result = SGXWalletServer::dkgVerificationV2Impl(pubShares, ethKeyName, secretShare, t, n, idx);
result["type"] = ZMQMessage::DKG_VERIFY_RSP; result["type"] = ZMQMessage::DKG_VERIFY_RSP;
return result; return result;
} }
...@@ -121,7 +121,7 @@ Json::Value createBLSPrivateKeyReqMessage::process() { ...@@ -121,7 +121,7 @@ Json::Value createBLSPrivateKeyReqMessage::process() {
auto secretShare = getStringRapid("secretShare"); auto secretShare = getStringRapid("secretShare");
auto t = getUint64Rapid("t"); auto t = getUint64Rapid("t");
auto n = getUint64Rapid("n"); auto n = getUint64Rapid("n");
auto result = SGXWalletServer::createBLSPrivateKeyImpl(blsKeyName, ethKeyName, polyName, secretShare, t, n); auto result = SGXWalletServer::createBLSPrivateKeyV2Impl(blsKeyName, ethKeyName, polyName, secretShare, t, n);
result["type"] = ZMQMessage::CREATE_BLS_PRIVATE_RSP; result["type"] = ZMQMessage::CREATE_BLS_PRIVATE_RSP;
return result; return result;
} }
......
...@@ -139,7 +139,6 @@ void ServerWorker::doOneServerLoop() noexcept { ...@@ -139,7 +139,6 @@ void ServerWorker::doOneServerLoop() noexcept {
void ServerWorker::work() { void ServerWorker::work() {
worker->connect("inproc://backend"); worker->connect("inproc://backend");
while (!isExitRequested) { while (!isExitRequested) {
try { try {
doOneServerLoop(); doOneServerLoop();
......
...@@ -44,7 +44,6 @@ class ServerWorker { ...@@ -44,7 +44,6 @@ class ServerWorker {
public: public:
ServerWorker(zmq::context_t &ctx, int sock_type, bool _checkSignature, const string& _caCert ); ServerWorker(zmq::context_t &ctx, int sock_type, bool _checkSignature, const string& _caCert );
void work(); void work();
void requestExit(); void requestExit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment