Remove unnecessary mut in PodSigner trait (#340)
The PodSigner trait was taking `&mut self` in the `sign` method, but the signer doesn't need mutation in the Shcnorr implementation. Remove the `mut`. Previously the PodProver trait was also taking `&mut self` in the `prove` method, and we had many tests creating a `mut Prover/mut MockProver`. Remove all those `mut`. Breaking change: `PodSigner` trait method `sign` replaces `&mut self` by `&self`
This commit is contained in:
parent
b5e0d97cb6
commit
63a716ebd7
11 changed files with 136 additions and 146 deletions
|
|
@ -311,8 +311,8 @@ mod tests {
|
|||
mp_builder.pub_op(op!(custom, gt_custom_pred, desugared_gt))?;
|
||||
|
||||
// Check that the POD builds
|
||||
let mut prover = MockProver {};
|
||||
let proof = mp_builder.prove(&mut prover, ¶ms)?;
|
||||
let prover = MockProver {};
|
||||
let proof = mp_builder.prove(&prover, ¶ms)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -360,8 +360,8 @@ mod tests {
|
|||
let set_contains_custom_pred = CustomPredicateRef::new(batch, 0);
|
||||
mp_builder.pub_op(op!(custom, set_contains_custom_pred, set_contains))?;
|
||||
|
||||
let mut prover = MockProver {};
|
||||
let proof = mp_builder.prove(&mut prover, ¶ms)?;
|
||||
let prover = MockProver {};
|
||||
let proof = mp_builder.prove(&prover, ¶ms)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue