Project
Truebit is a blockchain enhancement which enables smart contracts to securely perform complex computations in standard programming languages (e.g. C/C++/Rust). It can operate at a fraction of the cost of native gas. Any DApp can issue a computational task, and reputationless Miners receive token rewards for providing solutions.
Background
Truebit ranks among the earliest experiments in both cryptoeconomics and WebAssembly architecture (WASM). It currently exists as a fully-functional, high-performance, Soldity-compatible system. The platform enables DApps to leverage complex cryptographic primitives and other operations which exceed the gas limit. Truebit has led many popular community initiatives, including #ArtProject, ETH Prize, and Merry Merkle.
Implementation
We will adapt the Solidity-based version of Truebit for Nervos in order to enhance the functionality of CKB smart contracts. Truebit fits within Nervosâs design theme of conserving computational resources and is compatible with the platformâs Rust-based architecture. Along the way, the Truebit team may design and develop Solidity adaptation tools in conjunction with Nervosâs own Polyjuice initiative.
Technical specification
The components we propose to port onto Nervos are as follows.
- On-chain stepper for simulating transitions between WASM snapshots and smart contract rules for âverification gamesâ
- Truebitâs âincentive layerâ providing smart contract interface and cryptoeconomics for issuing and solving tasks
- Truebit-OS command line client and filesystem
- Token layer for pricing tasks
The whitepaper and token model provide more context for these technical contributions. Note that we can reuse some parts of Truebitâs existing off-chain interpreter and Toolchain for the CKB version. We will flesh out specs based on advice from Nervosâs core team and conclude integration with code testing and audits.