Run W3bstream Locally
The W3bstream GitHub repository includes a developer-friendly setup to facilitate DePIN builders building W3bstream provers for their verifiable off-chain computing. The setup includes the following services:- A reference implementation for a DePIN data sequencer
- A Postgres DB as the Data Availability service
- A W3bstream coordinator and a prover as a single-node W3bstream configuration
Download demo provers
Let’s start by first downloading some ready-made W3bstream project files that implement a basic “range prover” using different ZK technologies:Learn more about the examples
Learn more about the examples
Let’s quickly describe the demo projects:
Risc0 “Range Prover”
Proves that a certain integer is in a certain range.→ Source codeprivate_input: stringThe value we want to prove is within the range, e.g. “7”public_input: stringComma separated range endpoints, e.g. “3,9”
Halo2 “Proof of Multiplication”
Given two input and , compute the result and provide the proof.→ Source codeprivate_a: integerThe first valueprivate_b: integerThe second value
zkWASM “Proof of Addition”
Given three input and , compute the result and provide the proof that → Source code Inputs:private_input: integer[]The first valuepublic_input: integer[]The second value
Start the W3bstream Dev Setup
Test the setup
Now that we have a basic DePIN stack running, including a data sequencer, a data availability service, and a minimal W3bstream network, let’s test the setup by sending a data message targeting one of the three demo projects. In a new terminal, type the following command to send a data message to the sequencer targeting one of the example projects:- Risc0 Prover
- Halo2 Prover
- zkWASM Prover

