Skip to content

Commit

Permalink
Everything builds
Browse files Browse the repository at this point in the history
  • Loading branch information
codygunton committed Nov 17, 2023
1 parent 2fc62de commit 34c8dd1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion barretenberg/cpp/src/barretenberg/eccvm/eccvm_prover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ template <ECCVMFlavor Flavor> void ECCVMProver_<Flavor>::execute_transcript_cons
transcript.send_to_verifier("Translation:hack_commitment", commitment_key->commit(hack));

// Get the challenge at which we evaluate the polynomials as univariates
FF evaluation_challenge_x = transcript.get_challenge("Translation:evaluation_challenge_x");
evaluation_challenge_x = transcript.get_challenge("Translation:evaluation_challenge_x");

// Collect the polynomials and evaluations to be batched
const size_t NUM_UNIVARIATES = 6; // 5 transcript polynomials plus the constant hack poly
Expand Down
2 changes: 2 additions & 0 deletions barretenberg/cpp/src/barretenberg/eccvm/eccvm_prover.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ template <ECCVMFlavor Flavor> class ECCVMProver_ {

Polynomial quotient_W;

FF evaluation_challenge_x;

sumcheck::SumcheckOutput<Flavor> sumcheck_output;
pcs::gemini::ProverOutput<Curve> gemini_output;
pcs::shplonk::ProverOutput<Curve> shplonk_output;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,13 @@ template <typename Flavor> void GoblinTranslatorProver_<Flavor>::execute_zeromor
{
ZeroMorph::prove(prover_polynomials.get_unshifted(),
prover_polynomials.get_to_be_shifted(),
sumcheck_output.claimed_evaluations,
sumcheck_output.claimed_evaluations.get_unshifted(),
sumcheck_output.claimed_evaluations.get_shifted(),
sumcheck_output.challenge,
commitment_key,
transcript,
prover_polynomials.get_concatenated_constraints(),
sumcheck_output.claimed_evaluations.get_concatenated_constraints(),
prover_polynomials.get_concatenation_groups());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,16 @@ bool GoblinTranslatorVerifier_<Flavor>::verify_proof(
return false;
}

// Execute ZeroMorph rounds. See https://hackmd.io/dlf9xEwhTQyE3hiGbq4FsA?view for a complete description of the
// Execute ZeroMorph rounds. See https://hackmd.io/dlf9xEwhTQyE3hiGbq4FsA?view for a complete description ofthe
// unrolled protocol.
auto pairing_points = ZeroMorph::verify(commitments, claimed_evaluations, multivariate_challenge, transcript);
auto pairing_points = ZeroMorph::verify(commitments.get_unshifted(),
commitments.get_to_be_shifted(),
claimed_evaluations.get_unshifted(),
claimed_evaluations.get_shifted(),
multivariate_challenge,
transcript,
commitments.get_concatenation_groups(),
claimed_evaluations.get_concatenated_constraints());

auto verified = pcs_verification_key->pairing_check(pairing_points[0], pairing_points[1]);

Expand Down

0 comments on commit 34c8dd1

Please sign in to comment.