mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
sdk/python: use proof.verify() instead of proof.assert_satisfied() and still return errors to stderr
This commit is contained in:
@@ -341,8 +341,16 @@ impl MockProver {
|
||||
Self(prover)
|
||||
}
|
||||
|
||||
fn verify(&self) {
|
||||
self.0.assert_satisfied();
|
||||
fn verify(&self) -> PyResult<bool> {
|
||||
match self.0.verify() {
|
||||
Ok(_) => Ok(true),
|
||||
Err(errs) => {
|
||||
for err in errs {
|
||||
eprintln!("Error: Verify Failure: {:#?}", err);
|
||||
}
|
||||
Ok(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user