Skip to content

Commit 7fbe904

Browse files
committed
Add u() method and add u to default.
1 parent 0b4b674 commit 7fbe904

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/circuits/src/context.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ impl<Value: IValue> Context<Value> {
7373
Var { idx: 1 }
7474
}
7575

76+
pub fn u(&self) -> Var {
77+
Var { idx: 2 }
78+
}
79+
7680
/// Creates a new variable.
7781
pub fn new_var(&mut self, value: Value) -> Var {
7882
let idx = self.circuit.n_vars;

0 commit comments

Comments
 (0)