WebAssembly
Truebit uses WebAssembly as a foundational technology to ensure security, compatibility, and high-performance execution for its decentralized verification protocol.
Last updated
Was this helpful?
Truebit uses WebAssembly as a foundational technology to ensure security, compatibility, and high-performance execution for its decentralized verification protocol.
Last updated
Was this helpful?
(WASM) is a compilation target that allows to run high-performance code written in compiled languages like C, C++, and Rust to run in a platform-independent way through a sandboxed interpreter.
The (WASI) is the systems interface for WebAssembly. It allows to call specific operating system-related services to be called from inside the execution sandbox. WebAssembly programs can access filesystem data, environment variables, and program arguments through this interface. Truebit is compatible with WASM programs that use the WASI version known as 'Snapshot 1'.
All ingress/egress networking is disabled – you won't be able to pull data/code/weights/etc from an external source. WASM jobs can access the data by reading from the filesystem.
There is no multi-threading as WASI Snapshot 1 does not expose any interface for it.
Truebit uses WebAssembly as a foundational technology to ensure security, compatibility, and high-performance execution for its verification protocol.
Portability: Web assembly code can run unmodified on various platforms, ensuring compatibility across different systems.
Security: It provides a secure execution environment, critical for Truebit's , which involves executing untrusted code.
Performance: WebAssembly's speed is essential for the efficient execution of Truebit's complex verification tasks.
Language Flexibility: Developers contributing to Truebit can write code in , thanks to WebAssembly's language-agnostic nature.