Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift mask points. #654

Closed
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
14 changes: 11 additions & 3 deletions crates/prover/src/examples/wide_fibonacci/component.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use itertools::Itertools;

use crate::core::air::accumulation::PointEvaluationAccumulator;
use crate::core::air::mask::fixed_mask_points;
use crate::core::air::mask::shifted_mask_points;
use crate::core::air::{Air, Component, ComponentTraceWriter};
use crate::core::backend::CpuBackend;
use crate::core::circle::CirclePoint;
Expand Down Expand Up @@ -81,8 +81,16 @@ impl Component for WideFibComponent {
point: CirclePoint<SecureField>,
) -> TreeVec<ColumnVec<Vec<CirclePoint<SecureField>>>> {
TreeVec::new(vec![
fixed_mask_points(&vec![vec![0_usize]; self.n_columns()], point),
vec![vec![point]; SECURE_EXTENSION_DEGREE],
shifted_mask_points(
&vec![vec![0_usize]; self.n_columns()],
&vec![CanonicCoset::new(self.log_column_size()); self.n_columns()],
point,
),
shifted_mask_points(
&vec![vec![0_usize]; SECURE_EXTENSION_DEGREE],
&vec![CanonicCoset::new(self.log_column_size()); SECURE_EXTENSION_DEGREE],
point,
),
])
}

Expand Down
Loading