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

Update existing components #427

Closed
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
16 changes: 10 additions & 6 deletions stwo_cairo_verifier/crates/cairo_air/src/components.cairo
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
use stwo_constraint_framework::PreprocessedMaskValues;
use stwo_constraint_framework::{PreprocessedColumnSet, PreprocessedMaskValues};
use stwo_verifier_core::ColumnSpan;
use stwo_verifier_core::circle::CirclePoint;
use stwo_verifier_core::fields::qm31::QM31;
pub mod generic_opcode;

pub mod addr_to_id;
pub mod genericopcode;
pub mod id_to_f252;
pub mod jump_t_t_f_opcode;
pub mod range_check;
pub mod memory_address_to_id;
pub mod memory_id_to_big;
pub mod range_check_vector;
pub mod ret_opcode;
pub mod verify_instruction;

/// A component is a set of trace columns of the same sizes along with a set of constraints on them.
pub trait CairoComponent<T> {
/// Specifies the component's mask points.
///
/// Preprocessed columns that the component needs should be added to `preprocessed_column_set`.
fn mask_points(
self: @T,
ref preprocessed_column_set: PreprocessedColumnSet,
ref trace_mask_points: Array<Array<CirclePoint<QM31>>>,
ref interaction_trace_mask_points: Array<Array<CirclePoint<QM31>>>,
point: CirclePoint<QM31>,
Expand Down

This file was deleted.

Loading
Loading