Skip to content

Conversation

@RustNinja
Copy link

zk remote api workflow:

  • received request to create_proof from relayer.
  • write msgs, sigs, and pub keys into data.json file in the root of this project
  • run the command npm test to generate the batchinput.json
  • change directory to {}/circuits/batchverify_js
  • execute node generate_witness.js batchverify.wasm batchinput.json witness.wtns
  • change directory to {}/circuits
  • snarkjs groth16 prove batchverify_0001.zkey witness.wtns proof_{h}.json public_{h}.json. where h is the block height.
  • receive request get_proof -> read from the proof_{h}.json and return response to relayer

add logic into testH2.test.js to work together with a zk remote service

@RustNinja RustNinja requested a review from blasrodri February 16, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants