Skip to content

Commit

Permalink
Incorporate public values into the transcript (Plonky3#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubarov authored and tess-eract committed May 15, 2024
1 parent 317df5a commit dbbacf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions uni-stark/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ where
info_span!("commit to trace data").in_scope(|| pcs.commit_batch(trace));

challenger.observe(trace_commit.clone());
challenger.observe_slice(public_values);
let alpha: SC::Challenge = challenger.sample_ext_element();

let mut trace_ldes = pcs.get_ldes(&trace_data);
Expand Down
1 change: 1 addition & 0 deletions uni-stark/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ where
let g_subgroup = SC::Val::two_adic_generator(*degree_bits);

challenger.observe(commitments.trace.clone());
challenger.observe_slice(public_values);
let alpha: SC::Challenge = challenger.sample_ext_element();
challenger.observe(commitments.quotient_chunks.clone());
let zeta: SC::Challenge = challenger.sample_ext_element();
Expand Down

0 comments on commit dbbacf2

Please sign in to comment.