SKALE-2002 fix codacy warning

parent 497b3967
...@@ -221,7 +221,6 @@ void sendRPCRequest() { ...@@ -221,7 +221,6 @@ void sendRPCRequest() {
} }
} }
int k = 0; int k = 0;
vector <string> secShares(n); vector <string> secShares(n);
...@@ -235,7 +234,6 @@ void sendRPCRequest() { ...@@ -235,7 +234,6 @@ void sendRPCRequest() {
k++; k++;
} }
BLSSigShareSet sigShareSet(t, n); BLSSigShareSet sigShareSet(t, n);
string hash = SAMPLE_HASH; string hash = SAMPLE_HASH;
...@@ -249,14 +247,12 @@ void sendRPCRequest() { ...@@ -249,14 +247,12 @@ void sendRPCRequest() {
map <size_t, shared_ptr<BLSPublicKeyShare>> coeffs_pkeys_map; map <size_t, shared_ptr<BLSPublicKeyShare>> coeffs_pkeys_map;
for (int i = 0; i < t; i++) { for (int i = 0; i < t; i++) {
string endName = polyNames[i].substr(4); string endName = polyNames[i].substr(4);
string blsName = "BLS_KEY" + polyNames[i].substr(4); string blsName = "BLS_KEY" + polyNames[i].substr(4);
string secretShare = secretShares[i]["secretShare"].asString(); string secretShare = secretShares[i]["secretShare"].asString();
c.createBLSPrivateKey(blsName, ethKeys[i]["keyName"].asString(), polyNames[i], secShares[i], t, c.createBLSPrivateKey(blsName, ethKeys[i]["keyName"].asString(), polyNames[i], secShares[i], t, n);
n);
pubBLSKeys[i] = c.getBLSPublicKeyShare(blsName); pubBLSKeys[i] = c.getBLSPublicKeyShare(blsName);
string hash = SAMPLE_HASH; string hash = SAMPLE_HASH;
......
...@@ -55,7 +55,7 @@ testList = [ "[cert-sign]", ...@@ -55,7 +55,7 @@ testList = [ "[cert-sign]",
"[aes-encrypt-decrypt]", "[aes-encrypt-decrypt]",
"[sgx-encrypt-decrypt]", "[sgx-encrypt-decrypt]",
"[aes-dkg]", "[aes-dkg]",
"[aes-not-aes]" "[aes-not-aes]"
] ]
......
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