Supported languages
Truebit Verify supports Javascript, Python*, Rust or C/C++
Language Capabilities
Function Tasks are executed in a specially instrumented version of the WASMedge runtime. Functions written in Rust or C++ are directly compiled to WASM. JavaScript and Python are executed by an WASM-compiled interpreter. As is universally true, you may find that compiled functions execute faster than interpreted functions.
Language
Task Instrumentation
Task preparation
Dependencies
Setup
You can write Function Tasks in various development languages. Here's how to install different versions of these languages.
Currently, we support Rust version 1.81 only. Please install it by running the following command-line commands:
curl https://sh.rustup.rs -sSf | sh
source "$HOME/.cargo/env"
rustup install 1.81.0
rustup default 1.81
Please run the following line to install WebAssembly and WASI Preview 1 support for Rust:
rustup target add wasm32-wasip1
Last updated
Was this helpful?