Skip to content

Commit

Permalink
traces decommit & table decommit
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jan 10, 2024
1 parent 4d82ddc commit b975d46
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/stark/stark_verify.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ use cairo_verifier::queries::queries::queries_to_points;
use cairo_verifier::domains::StarkDomains;
use cairo_verifier::fri::fri::{FriDecommitment, fri_verify};
use cairo_verifier::stark::{StarkUnsentCommitment, StarkWitness, StarkCommitment};
use cairo_verifier::air::traces::traces_decommit;
use cairo_verifier::table_commitment::table_decommit;

// STARK decommitment phase.
fn stark_verify(
Expand All @@ -11,6 +13,16 @@ fn stark_verify(
stark_domains: StarkDomains,
) {
// First layer decommit.
traces_decommit(
queries, commitment.traces, witness.traces_decommitment, witness.traces_witness
);

table_decommit(
commitment.composition,
queries,
witness.composition_decommitment,
witness.composition_witness,
);

// Compute query points.
let points = queries_to_points(queries, @stark_domains);
Expand Down

0 comments on commit b975d46

Please sign in to comment.