Based off of https://github.com/zk-passport, modified signifcantly for lightweight proof-of-personhood circuits with a lightweight merkle tree of verified countries, and fast proving with VOLE-based ZK
- Upload
issuerTree.json
,proof_of_passport.r1cs
, andproof_of_passport_js/proof_of_passport.wasm
so they are available to the frontend - Copy over
makeProofInputs
andmakeProof
frompassport.test.ts
, along with their imports and dependencies to the frontend - In issuerPubkey utils, you can ignore/delete all calls to
fs
and functions that are just to load and save files. rather, we can just directly make the PrecomputedBinaryMerkleTree from the contents ofissuerTree.json
. This may necessitate modifying 1-2 lines inmakeInputs
related to loading the Merkle tree. - replace package
wasm-vole-zk-adapter-nodejs
withwasm-vole-zk-adapter