Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
Move public input to the first position in JSON #29
Browse files Browse the repository at this point in the history
  • Loading branch information
ETatuzova committed Dec 23, 2023
1 parent 8dd8b84 commit c20e54f
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,6 @@ namespace nil {
std::stringstream out;
out << "[" << std::endl;

out << "\t{\"array\":[" << std::endl;
out << "\t\t" << generate_hash<typename PlaceholderParams::transcript_hash_type>(
vk.constraint_system_hash
) << "," << std::endl;
out << "\t\t" << generate_hash<typename PlaceholderParams::transcript_hash_type>(
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++){
Expand All @@ -267,6 +258,15 @@ namespace nil {
}
out << std::endl << "\t]}," << std::endl;

out << "\t{\"array\":[" << std::endl;
out << "\t\t" << generate_hash<typename PlaceholderParams::transcript_hash_type>(
vk.constraint_system_hash
) << "," << std::endl;
out << "\t\t" << generate_hash<typename PlaceholderParams::transcript_hash_type>(
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<typename PlaceholderParams::commitment_scheme_type>(proof.commitments.at(1))//(nil::crypto3::zk::snark::VARIABLE_VALUES_BATCH)
Expand Down

0 comments on commit c20e54f

Please sign in to comment.