Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Oct 31, 2024
1 parent 81bd6fc commit 950006c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 35 deletions.
65 changes: 33 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions integration/src/verifier.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use halo2_proofs::{halo2curves::bn256::Bn256, poly::kzg::commitment::ParamsKZG};
use prover::{common::Verifier, config, consts, io::force_to_read, CompressionCircuit};
use snark_verifier_sdk::verify_evm_calldata;
use std::{collections::BTreeMap, env};

type SnarkVerifier<'a> = Verifier<'a, CompressionCircuit>;
Expand Down Expand Up @@ -57,6 +56,9 @@ impl EVMVerifier {
}

pub fn verify_evm_proof(&self, call_data: Vec<u8>) -> bool {
verify_evm_calldata(self.0.clone(), call_data)
//let res = crate::evm::deploy_and_call(self.0.clone(), call_data);
let res = prover::deploy_and_call(self.0.clone(), call_data);
log::debug!("verify_evm_proof result {:?}", res);
res.is_ok()
}
}
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-07-07"
channel = "nightly-2024-01-25"

0 comments on commit 950006c

Please sign in to comment.