Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MaanavKhaitan committed Nov 21, 2024
1 parent 950a1f9 commit 6cf45f9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions zkvm-utils/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,12 @@ async fn execute_onchain_job_ffi(
max_cycles: u64,
zkvm_executor: &ZkvmExecutorService<LocalSigner<SigningKey>>,
) -> Result<()> {
// println!("NARULA program id hex is {:?}", hex::encode(program_id.clone()));
let elf = std::fs::read(elf_path).unwrap();
let (result_with_metadata, zkvm_operator_signature) = zkvm_executor
.execute_onchain_job(job_id, max_cycles, program_id, onchain_input, elf, VmType::Sp1)
.await
.unwrap();

// abi decode
// let result = ResultWithMetadata::abi_decode(&result_with_metadata, false).unwrap();
// println!("NARULA program ID is {:?}", hex::encode(result.program_id.clone()));

let calldata =
abi_encode_result_with_signature_calldata(result_with_metadata, zkvm_operator_signature);
let output = hex::encode(calldata);
Expand Down

0 comments on commit 6cf45f9

Please sign in to comment.