diff --git a/libsnark/zk_proof_systems/plonk/verifier.hpp b/libsnark/zk_proof_systems/plonk/verifier.hpp index 246f69a8c..e9f9f6631 100644 --- a/libsnark/zk_proof_systems/plonk/verifier.hpp +++ b/libsnark/zk_proof_systems/plonk/verifier.hpp @@ -203,7 +203,7 @@ template class plonk_verifier /// \param[out] u: multipoint evaluation challenge - hash of /// transcript static step_four_out_t step_four( - transcript_hash_t &transcript_hash); + const transcript_hash_t &transcript_hash); /// Verifier Step 5: compute zero polynomial evaluation /// diff --git a/libsnark/zk_proof_systems/plonk/verifier.tcc b/libsnark/zk_proof_systems/plonk/verifier.tcc index 5d5069cc5..dbcd42796 100644 --- a/libsnark/zk_proof_systems/plonk/verifier.tcc +++ b/libsnark/zk_proof_systems/plonk/verifier.tcc @@ -118,30 +118,16 @@ step_four_out_t::step_four_out_t( /// transcript template step_four_out_t plonk_verifier::step_four( - transcript_hash_t &transcript_hash) + const transcript_hash_t &transcript_hash) { // step 4 output - libff::Fr beta; - libff::Fr gamma; - libff::Fr alpha; - libff::Fr zeta; - libff::Fr nu; - libff::Fr u; - - beta = transcript_hash.beta; - gamma = transcript_hash.gamma; - alpha = transcript_hash.alpha; - zeta = transcript_hash.zeta; - nu = transcript_hash.nu; - u = transcript_hash.u; - step_four_out_t step_four_out( - std::move(beta), - std::move(gamma), - std::move(alpha), - std::move(zeta), - std::move(nu), - std::move(u)); + Field(transcript_hash.beta), + Field(transcript_hash.gamma), + Field(transcript_hash.alpha), + Field(transcript_hash.zeta), + Field(transcript_hash.nu), + Field(transcript_hash.u)); return step_four_out; }