Skip to content

Commit b752f58

Browse files
committed
Fix benchmarks
1 parent ea43c50 commit b752f58

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

prover/benches/atms.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,16 @@ impl Circuit<Base> for BenchCircuitAtmsSignature {
7272
.iter()
7373
.map(|&signature| {
7474
if let Some(sig) = signature {
75-
Some(
76-
atms_gate
77-
.schnorr_gate
78-
.assign_sig(&mut ctx, &Value::known(sig))
79-
.ok()?,
80-
)
75+
atms_gate
76+
.schnorr_gate
77+
.assign_sig(&mut ctx, &Value::known(sig))
8178
} else {
82-
None
79+
atms_gate
80+
.schnorr_gate
81+
.assign_dummy_sig(&mut ctx)
8382
}
8483
})
85-
.collect::<Vec<_>>();
84+
.collect::<Result<Vec<_>, Error>>()?;
8685
let assigned_pks = self
8786
.pks
8887
.iter()

prover/src/signatures/schnorr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ impl SchnorrVerifierGate {
138138

139139
let lhs = self.combined_mul(ctx, &signature.1.0, &challenge, &assigned_generator, pk)?;
140140

141-
//self.ecc_gate.constrain_equal(ctx, &lhs, &signature.0)?;
142-
143141
Ok(self.ecc_gate.is_equal(ctx, &lhs, &signature.0)?)
144142
}
145143

0 commit comments

Comments
 (0)