Prerequisites
Prerequisites
Build the prover
Clone the W3bstream repository
Start by cloning the W3bstream repository, where you can start from a template example:Build the Circuit
Enter the zkWASM circuit folderzkwasm_demo.wasm.
Verify a Proof Locally
Using Docker
→ Check out the Getting Started to learn how to generate a local proof inside a local W3bstream node
- Execute the
docker runcommand for local verification. Note that the directory where the proof is located needs to be mounted into the image. It’s simple, just input the proof file. You can also use the help command to check how to use it.
Using the binary
Build the Verifier
Run the following command to build the verifier:zkwasm-circuit executable file will be generated in the target/release directory.
Verify
You can execute the binary file in thetarget/release directory. To verify a proof, simply provide the proof file as an argument. For more details on usage, you can use the help command.
zkwasm currently supports single proof verification only.
