This documentation is work in progress.
Assumptions
- Device Tokenization: a Device NFT contract for our WiFi routers has already been deployed on IoTeX. This contract tokenizes each device on-chain and the token ID represents our custom ID for the device (e.g.a serial nomber)
- Identity Registration: Both the devices and their owners have their identities registered in the IoTeX ioID Identity Module.
- Device Messages: These devices send messages about their online status and the number of WiFi clients they have served. These messages have been processed by W3bstream using a Risc0 ZK prover to determine the amount of rewards accumulated by each device based on their activity.
- A DePIN token (ERC20) to be used for incentivising device owners is already deployed on IoTeX.
The code
References- Build a W3bstream prover using Risc0
- Risc0 Verifier contract deployment on IoTeX Testnet
- Risc0 Verifier source code
- Library to parse the Journal output created by our DeWi prover

