Skip to content

Commit

Permalink
revert mock prover improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse committed Oct 28, 2024
1 parent d1bdc66 commit fab50fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 1 addition & 7 deletions ceno_zkvm/src/chip_handler/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,7 @@ impl<'a, E: ExtensionField> CircuitBuilder<'a, E> {
NR: Into<String>,
N: FnOnce() -> NR,
{
self.namespace(
|| "require_equal",
|cb| {
cb.cs
.require_zero(name_fn, a.to_monomial_form() - b.to_monomial_form())
},
)
self.namespace(|| "require_equal", |cb| cb.cs.require_zero(name_fn, a - b))
}

pub fn require_one<NR, N>(&mut self, name_fn: N, expr: Expression<E>) -> Result<(), ZKVMError>
Expand Down
4 changes: 1 addition & 3 deletions ceno_zkvm/src/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,7 @@ pub mod fmt {
) -> String {
match expression {
Expression::WitIn(wit_in) => {
if !wtns.contains(wit_in) {
wtns.push(*wit_in);
}
wtns.push(*wit_in);
format!("WitIn({})", wit_in)
}
Expression::Challenge(id, pow, scaler, offset) => {
Expand Down

0 comments on commit fab50fa

Please sign in to comment.