Skip to content

Commit

Permalink
Merge branch '0xPolygonZero:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sai-deng authored Jul 7, 2024
2 parents 2917226 + f5a5845 commit 8670356
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions starky/src/get_challenges.rs
Original file line number Diff line number Diff line change
@@ -157,6 +157,7 @@ where
ignore_trace_cap: bool,
config: &StarkConfig,
) -> StarkProofChallenges<F, D> {
challenger.observe_elements(&self.public_inputs);
self.proof
.get_challenges(challenger, challenges, ignore_trace_cap, config)
}
@@ -302,6 +303,7 @@ impl<const D: usize> StarkProofWithPublicInputsTarget<D> {
C: GenericConfig<D, F = F>,
C::Hasher: AlgebraicHasher<F>,
{
challenger.observe_elements(&self.public_inputs);
self.proof
.get_challenges::<F, C>(builder, challenger, challenges, ignore_trace_cap, config)
}
1 change: 1 addition & 0 deletions starky/src/prover.rs
Original file line number Diff line number Diff line change
@@ -71,6 +71,7 @@ where

let trace_cap = trace_commitment.merkle_tree.cap.clone();
let mut challenger = Challenger::new();
challenger.observe_elements(public_inputs);
challenger.observe_cap(&trace_cap);

prove_with_commitment(

0 comments on commit 8670356

Please sign in to comment.