@@ -105,13 +105,13 @@ void print_hex_byteblob(std::ostream &os, TIter iter_begin, TIter iter_end, bool
105105 }
106106}
107107
108- template <typename Endianness, typename Proof>
109- void proof_print (Proof &proof, const std::string &output_file) {
108+ template <typename Endianness, typename Proof, typename CommitmentParamsType >
109+ void proof_print (Proof &proof, const CommitmentParamsType& commitment_params, const std::string &output_file) {
110110 using namespace nil ::crypto3::marshalling;
111111
112112 using TTypeBase = nil::marshalling::field_type<Endianness>;
113113 using proof_marshalling_type = nil::crypto3::zk::snark::placeholder_proof<TTypeBase, Proof>;
114- auto filled_placeholder_proof = types::fill_placeholder_proof<Endianness, Proof>(proof);
114+ auto filled_placeholder_proof = types::fill_placeholder_proof<Endianness, Proof>(proof, commitment_params );
115115
116116 std::vector<std::uint8_t > cv;
117117 cv.resize (filled_placeholder_proof.length (), 0x00 );
@@ -513,9 +513,7 @@ int curve_dependent_main(
513513
514514 std::string proof_path = output_folder_path + " /proof.bin" ;
515515 std::cout << " Writing proof to " << proof_path << " ..." << std::endl;
516- auto filled_placeholder_proof =
517- nil::crypto3::marshalling::types::fill_placeholder_proof<Endianness, ProofType>(proof);
518- proof_print<Endianness, ProofType>(proof, proof_path);
516+ proof_print<Endianness, ProofType>(proof, fri_params, proof_path);
519517 std::cout << " Proof written" << std::endl;
520518 }
521519 return 0 ;
0 commit comments