Unverified Commit d8eb3aac authored by kladko's avatar kladko

SKALE-2341 Added tags for older commits

parent 59dc6125
...@@ -472,6 +472,8 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") { ...@@ -472,6 +472,8 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") {
// cerr << "Client inited" << endl; // cerr << "Client inited" << endl;
cerr << "1" << endl;
int n = 16, t = 16; int n = 16, t = 16;
Json::Value etnKeys[n]; Json::Value etnKeys[n];
Json::Value VerifVects[n]; Json::Value VerifVects[n];
...@@ -496,6 +498,7 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") { ...@@ -496,6 +498,7 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") {
pubEthKeys.append(etnKeys[i]["publicKey"]); pubEthKeys.append(etnKeys[i]["publicKey"]);
} }
cerr << "2" << endl;
for (uint8_t i = 0; i < n; i++) { for (uint8_t i = 0; i < n; i++) {
secretShares[i] = c.getSecretShare(polyNames[i], pubEthKeys, t, n); secretShares[i] = c.getSecretShare(polyNames[i], pubEthKeys, t, n);
...@@ -510,6 +513,8 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") { ...@@ -510,6 +513,8 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") {
} }
} }
cerr << "3" << endl;
int k = 0; int k = 0;
vector<string> secSharesVect; vector<string> secSharesVect;
...@@ -537,6 +542,8 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") { ...@@ -537,6 +542,8 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") {
BLSSigShareSet sigShareSet(t, n); BLSSigShareSet sigShareSet(t, n);
cerr << "4" << endl;
string hash = "09c6137b97cdf159b9950f1492ee059d1e2b10eaf7d51f3a97d61f2eee2e81db"; string hash = "09c6137b97cdf159b9950f1492ee059d1e2b10eaf7d51f3a97d61f2eee2e81db";
auto hash_arr = make_shared<array<uint8_t, 32>>(); auto hash_arr = make_shared<array<uint8_t, 32>>();
...@@ -571,11 +578,15 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") { ...@@ -571,11 +578,15 @@ TEST_CASE("BLS_DKG test", "[bls_dkg]") {
} }
cerr << "5" << endl;
shared_ptr<BLSSignature> commonSig = sigShareSet.merge(); shared_ptr<BLSSignature> commonSig = sigShareSet.merge();
BLSPublicKey common_public(make_shared<map<size_t, shared_ptr<BLSPublicKeyShare>>>(coeffsPubKeysMap), t, n); BLSPublicKey common_public(make_shared<map<size_t, shared_ptr<BLSPublicKeyShare>>>(coeffsPubKeysMap), t, n);
REQUIRE(common_public.VerifySigWithHelper(hash_arr, commonSig, t, n)); REQUIRE(common_public.VerifySigWithHelper(hash_arr, commonSig, t, n));
sgx_destroy_enclave(eid); cerr << "6" << endl;
destroyEnclave();
} }
......
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