diff --git a/src/core/cli/repl.rs b/src/core/cli/repl.rs index 02d96ffe..d994aa24 100644 --- a/src/core/cli/repl.rs +++ b/src/core/cli/repl.rs @@ -324,6 +324,7 @@ impl, C2: Chipset> Repl { bytes: Default::default(), emitted: Default::default(), debug_data: Default::default(), + provable: false, } } diff --git a/src/lair/execute.rs b/src/lair/execute.rs index e984cbd4..819ef996 100644 --- a/src/lair/execute.rs +++ b/src/lair/execute.rs @@ -82,6 +82,7 @@ pub struct QueryRecord { pub(crate) bytes: BytesRecord, pub(crate) emitted: Vec>, pub(crate) debug_data: DebugData, + pub(crate) provable: bool, } #[derive(Default, Clone, Debug, Eq, PartialEq)] @@ -287,6 +288,7 @@ impl QueryRecord { bytes: BytesRecord::default(), emitted: vec![], debug_data: DebugData::default(), + provable: true, } } @@ -463,8 +465,10 @@ impl, C2: Chipset> Toplevel { public_values.extend(depth.to_le_bytes().map(F::from_canonical_u8)); } queries.public_values = Some(public_values); - let map = queries.nonce_map(self); - queries.fix_nonces(&map); + if queries.provable { + let map = queries.nonce_map(self); + queries.fix_nonces(&map); + } Ok(out) }