Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwen01 committed Dec 16, 2024
1 parent d187123 commit ce999e2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,9 @@ pub fn verify_proof_raw(proof: &[u8], public_inputs: &[u8], vk: &[u8]) -> Result
&public_inputs.inputs,
&vk,
)
.map_err(|err| {
println!("error internal: {:?}", err);
Error::VerificationError
})?;
.map_err(|_| Error::VerificationError)?;

if verifier.verify().map_err(|err| {
println!("error internal2: {:?}", err);
Error::VerificationError
})? {
if verifier.verify().map_err(|_| Error::VerificationError)? {
println!("Verification successful.");
Ok(())
} else {
Expand Down

0 comments on commit ce999e2

Please sign in to comment.