Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions prover/src/constraints/composition_poly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use alloc::vec::Vec;

use air::proof::QuotientOodFrame;
use math::{fft, polynom::degree_of, FieldElement, StarkField};
use tracing::instrument;

use super::{ColMatrix, StarkDomain};

Expand Down Expand Up @@ -98,6 +99,7 @@ impl<E: FieldElement> CompositionPoly<E> {
}

/// Returns evaluations of all composition polynomial columns at points `z` and `g * z`.
#[instrument(skip_all)]
pub fn get_ood_frame(&self, z: E) -> QuotientOodFrame<E> {
let log_trace_len = self.column_len().ilog2();
let g = E::from(E::BaseField::get_root_of_unity(log_trace_len));
Expand Down
2 changes: 2 additions & 0 deletions prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ pub trait Prover {
.commit_to_constraint_evaluations(&air, composition_poly_trace, &domain, &mut channel));

// 4 ----- build DEEP composition polynomial ----------------------------------------------
let opening_span = info_span!("opening").entered();
let deep_composition_poly = {
let span = info_span!("build_deep_composition_poly").entered();
// draw an out-of-domain point z. Depending on the type of E, the point is drawn either
Expand Down Expand Up @@ -460,6 +461,7 @@ pub trait Prover {
drop(span);
query_positions
};
drop(opening_span);

// 8 ----- build proof object -------------------------------------------------------------
let proof = {
Expand Down
5 changes: 4 additions & 1 deletion prover/src/matrix/col_matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use core::{iter::FusedIterator, slice};

use crypto::{ElementHasher, VectorCommitment};
use math::{fft, polynom, FieldElement};
use tracing::info_span;
#[cfg(feature = "concurrent")]
use utils::iterators::*;
use utils::{batch_iter_mut, iter, iter_mut, uninit_vector};
Expand Down Expand Up @@ -246,7 +247,9 @@ impl<E: FieldElement> ColMatrix<E> {
where
F: FieldElement + From<E>,
{
iter!(self.columns).map(|p| polynom::eval(p, x)).collect()
let dim = (self.num_cols(), self.num_rows());
info_span!("compute opened values with Horner evaluation", ?dim)
.in_scope(|| iter!(self.columns).map(|p| polynom::eval(p, x)).collect())
}

// COMMITMENTS
Expand Down
2 changes: 2 additions & 0 deletions prover/src/trace/poly_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use alloc::vec::Vec;

use air::proof::TraceOodFrame;
use math::{FieldElement, StarkField};
use tracing::instrument;

use crate::{matrix::ColumnIter, ColMatrix};

Expand Down Expand Up @@ -65,6 +66,7 @@ impl<E: FieldElement> TracePolyTable<E> {

/// Returns an out-of-domain evaluation frame constructed by evaluating trace polynomials for
/// all columns at points z and z * g, where g is the generator of the trace domain.
#[instrument(skip_all)]
pub fn get_ood_frame(&self, z: E) -> TraceOodFrame<E> {
let log_trace_len = self.poly_size().ilog2();
let g = E::from(E::BaseField::get_root_of_unity(log_trace_len));
Expand Down
Loading