Skip to main content

miden_air/constraints/system/
columns.rs

1use miden_core::WORD_SIZE;
2
3/// System columns in the main execution trace (6 columns).
4///
5/// These columns track global execution state: clock cycle, execution context, and
6/// the function hash (digest) of the currently executing function.
7#[repr(C)]
8#[derive(Debug, Clone, Default)]
9pub struct SystemCols<T> {
10    /// Clock cycle counter.
11    pub clk: T,
12    /// Context identifier.
13    pub ctx: T,
14    /// Function hash (digest) of the currently executing function.
15    pub fn_hash: [T; WORD_SIZE],
16}