diff --git a/bin/proof-generator/include/nil/proof-generator/recursive_json_generator.hpp b/bin/proof-generator/include/nil/proof-generator/recursive_json_generator.hpp index 12a3d8c9..cbee229c 100644 --- a/bin/proof-generator/include/nil/proof-generator/recursive_json_generator.hpp +++ b/bin/proof-generator/include/nil/proof-generator/recursive_json_generator.hpp @@ -247,15 +247,6 @@ namespace nil { std::stringstream out; out << "[" << std::endl; - out << "\t{\"array\":[" << std::endl; - out << "\t\t" << generate_hash( - vk.constraint_system_hash - ) << "," << std::endl; - out << "\t\t" << generate_hash( - vk.fixed_values_commitment - ) << std::endl; - out << "\t]}," << std::endl; - out << "\t{\"array\":[" << std::endl; std::size_t cur = 0; for(std::size_t i = 0; i < arithmetization_params::public_input_columns; i++){ @@ -267,6 +258,15 @@ namespace nil { } out << std::endl << "\t]}," << std::endl; + out << "\t{\"array\":[" << std::endl; + out << "\t\t" << generate_hash( + vk.constraint_system_hash + ) << "," << std::endl; + out << "\t\t" << generate_hash( + vk.fixed_values_commitment + ) << std::endl; + out << "\t]}," << std::endl; + out << "\t{\"struct\":[" << std::endl; out << "\t\t{\"array\":[" << std::endl; out << "\t\t\t" << generate_commitment(proof.commitments.at(1))//(nil::crypto3::zk::snark::VARIABLE_VALUES_BATCH)