Skip to content

Commit

Permalink
Merge pull request #390 from a16z/violet/quark_opt
Browse files Browse the repository at this point in the history
Various Quark Optimizations
  • Loading branch information
moodlezoup authored Jun 20, 2024
2 parents 55804a9 + 918dfe2 commit f3538ad
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 174 deletions.
7 changes: 4 additions & 3 deletions jolt-core/src/jolt/vm/timestamp_range_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ where
transcript: &mut ProofTranscript,
) -> Self {
let (batched_grand_product, multiset_hashes, r_grand_product) =
TimestampValidityProof::prove_grand_products(range_check_polys, transcript);
TimestampValidityProof::prove_grand_products(range_check_polys, transcript, generators);

let polys_iter = range_check_polys
.read_cts_read_timestamp
Expand Down Expand Up @@ -677,6 +677,7 @@ where
fn prove_grand_products(
polynomials: &RangeCheckPolynomials<F, C>,
transcript: &mut ProofTranscript,
setup: &C::Setup,
) -> (BatchedGrandProductProof<C>, MultisetHashes<F>, Vec<F>) {
// Fiat-Shamir randomness for multiset hashes
let gamma: F = transcript.challenge_scalar(b"Memory checking gamma");
Expand All @@ -703,7 +704,7 @@ where
multiset_hashes.append_to_transcript(transcript);

let (batched_grand_product, r_grand_product) =
batched_circuit.prove_grand_product(transcript, None);
batched_circuit.prove_grand_product(transcript, Some(setup));

drop_in_background_thread(batched_circuit);

Expand Down Expand Up @@ -741,7 +742,7 @@ where
&self.batched_grand_product,
&concatenated_hashes,
transcript,
None,
Some(generators),
);

let openings: Vec<_> = self
Expand Down
Loading

0 comments on commit f3538ad

Please sign in to comment.