Skip to content

Commit

Permalink
fix issues in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
roynalnaruto committed Jul 11, 2024
1 parent 413a456 commit db541f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion common/libzkp/impl/src/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use prover_v4::{
BatchHeader, BatchProof as BatchProofV4, BatchProvingTask, BlockTrace, BundleProof,
BundleProvingTask, ChunkInfo, ChunkProof, MAX_AGG_SNARKS,
};
use snark_verifier_sdk::verify_evm_calldata;
use std::{cell::OnceCell, env, ptr::null};

static mut PROVER: OnceCell<Prover> = OnceCell::new();
Expand Down Expand Up @@ -171,7 +172,10 @@ pub unsafe extern "C" fn gen_batch_proof(

/// # Safety
#[no_mangle]
pub unsafe extern "C" fn verify_batch_proof(proof: *const c_char) -> c_char {
pub unsafe extern "C" fn verify_batch_proof(
proof: *const c_char,
fork_name: *const c_char,
) -> c_char {
let proof = c_char_to_vec(proof);
let fork_name_str = c_char_to_str(fork_name);
let fork_id = match fork_name_str {
Expand Down
2 changes: 1 addition & 1 deletion common/libzkp/interface/libzkp.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ char* gen_chunk_proof(char* block_traces);
char verify_chunk_proof(char* proof, char* fork_name);

char* block_traces_to_chunk_info(char* block_traces);
void free_c_chars(char* ptr);
void free_c_chars(char* ptr);

0 comments on commit db541f1

Please sign in to comment.