Perform curve parameter initialization at start of gtest suite.

This commit is contained in:
Sean Bowe
2016-08-18 12:15:08 -06:00
parent ea92aba9fe
commit ae6b333c75
3 changed files with 7 additions and 4 deletions

View File

@@ -170,8 +170,6 @@ void test_tree(Array root_tests, Array ser_tests, Array witness_ser_tests, Array
}
TEST(merkletree, vectors) {
libsnark::default_r1cs_ppzksnark_pp::init_public_params();
Array root_tests = read_json(std::string(json_tests::merkle_roots, json_tests::merkle_roots + sizeof(json_tests::merkle_roots)));
Array ser_tests = read_json(std::string(json_tests::merkle_serialization, json_tests::merkle_serialization + sizeof(json_tests::merkle_serialization)));
Array witness_ser_tests = read_json(std::string(json_tests::merkle_witness_serialization, json_tests::merkle_witness_serialization + sizeof(json_tests::merkle_witness_serialization)));