diff --git a/extensions/native/compiler/src/constraints/halo2/compiler.rs b/extensions/native/compiler/src/constraints/halo2/compiler.rs index 12104f14f..a98bb17b0 100644 --- a/extensions/native/compiler/src/constraints/halo2/compiler.rs +++ b/extensions/native/compiler/src/constraints/halo2/compiler.rs @@ -146,8 +146,6 @@ impl Halo2ConstraintCompiler { let mut felts = HashMap::::new(); let mut exts = HashMap::::new(); - let mut vkey_hash = None; - let mut committed_values_digest = None; #[cfg(feature = "bench-metrics")] let mut old_stats = stats_snapshot(ctx, range.clone()); for (instruction, backtrace) in operations { @@ -396,14 +394,6 @@ impl Halo2ConstraintCompiler { let x = ext_chip.load_witness(ctx, halo2_state.exts[&b]); exts.insert(a.0, x); } - DslIr::CircuitCommitVkeyHash(a) => { - assert!(vkey_hash.is_none()); - vkey_hash = Some(vars[&a.0]); - } - DslIr::CircuitCommitCommittedValuesDigest(a) => { - assert!(committed_values_digest.is_none()); - committed_values_digest = Some(vars[&a.0]); - } DslIr::CircuitFelts2Ext(a, b) => { let x = AssignedBabyBearExt4( a.iter() diff --git a/extensions/native/compiler/src/constraints/mod.rs b/extensions/native/compiler/src/constraints/mod.rs index a3b3fc429..904918177 100644 --- a/extensions/native/compiler/src/constraints/mod.rs +++ b/extensions/native/compiler/src/constraints/mod.rs @@ -339,14 +339,6 @@ impl ConstraintCompiler { opcode: ConstraintOpcode::WitnessE, args: vec![vec![a.id()], vec![b.to_string()]], }), - DslIr::CircuitCommitVkeyHash(a) => constraints.push(Constraint { - opcode: ConstraintOpcode::CommitVkeyHash, - args: vec![vec![a.id()]], - }), - DslIr::CircuitCommitCommittedValuesDigest(a) => constraints.push(Constraint { - opcode: ConstraintOpcode::CommitCommittedValuesDigest, - args: vec![vec![a.id()]], - }), DslIr::CircuitFelts2Ext(a, b) => constraints.push(Constraint { opcode: ConstraintOpcode::CircuitFelts2Ext, args: vec![ diff --git a/extensions/native/compiler/src/ir/builder.rs b/extensions/native/compiler/src/ir/builder.rs index cccbcd457..e24bc310e 100644 --- a/extensions/native/compiler/src/ir/builder.rs +++ b/extensions/native/compiler/src/ir/builder.rs @@ -571,15 +571,6 @@ impl Builder { }); } - pub fn commit_vkey_hash_circuit(&mut self, var: Var) { - self.operations.push(DslIr::CircuitCommitVkeyHash(var)); - } - - pub fn commit_committed_values_digest_circuit(&mut self, var: Var) { - self.operations - .push(DslIr::CircuitCommitCommittedValuesDigest(var)); - } - pub fn cycle_tracker_start(&mut self, name: &str) { self.operations .push(DslIr::CycleTrackerStart(name.to_string())); diff --git a/extensions/native/compiler/src/ir/instructions.rs b/extensions/native/compiler/src/ir/instructions.rs index 3b5da9263..cd9a09f0d 100644 --- a/extensions/native/compiler/src/ir/instructions.rs +++ b/extensions/native/compiler/src/ir/instructions.rs @@ -233,12 +233,6 @@ pub enum DslIr { Halt, // Public inputs for circuits. - /// Asserts that the inputted var is equal the circuit's vkey hash public input. Should only be - /// used when target is a circuit. - CircuitCommitVkeyHash(Var), - /// Asserts that the inputted var is equal the circuit's committed values digest public input. Should - /// only be used when target is a circuit. - CircuitCommitCommittedValuesDigest(Var), /// Publish a field element as the ith public value. Should only be used when target is a circuit. CircuitPublish(Var, usize),