sdk/python: use proof.verify() instead of proof.assert_satisfied() and still return errors to stderr

This commit is contained in:
dasman
2025-03-06 03:26:15 +03:00
parent 012f5dec23
commit b93f851e38

View File

@@ -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)
}
}
}
}