Halo2

Prerequisites

WASM pack

Ensure you have wasm-pack installed:

curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

Build the prover

Clone the W3bstream repository

Start by cloning the W3bstream repository, where you can start from a template example:

git clone https://github.com/iotexproject/w3bstream.git
cd examples/halo2-circuit/

Open the folder in a code editor and make the required modifications based on your actual data message.

Build the circuit

wasm-pack build --target nodejs --out-dir pkg

The circuit bytecode is saved in the file halo2_wasm_bg.wasm located under the pkg folder.

Build the circuit executable

The command below will create thasdfwefe circuit executable that can be used to generate and verify proofs locally, as well as generate the Solidity contract for on-chain verification of a proof:

cargo build --release

Last updated

Logo

This documentation portal is currently undergoing updates to align with the IoTeX 2.0 Whitepaper release. Information provided here may be incomplete, or out-of-date. Please use this portal for preliminary reference only, and check out the official IoTeX 2.0 Whitepaper for updated information.

.

2024 | IoTeX