improve var creation for SumProdCircuit

This commit is contained in:
2026-04-28 17:29:11 +02:00
parent 0c4bddf3b0
commit 5caccbaf50
6 changed files with 12 additions and 11 deletions

View File

@@ -19,6 +19,7 @@ fn main() {
let quotient: Rc<RefCell<QuotientCircuit>> = idem.into();
// Build x * x̄ + x in the DAG
// var accepts anything that implements Into<StaticVar>: &'static str, (&str, u32), (&str, u32, u32)
let xn = quotient.var("x");
let nxn = quotient.var("x\u{0304}");
let prod = xn * nxn;