Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Cartesi Machine

A deterministic RISC-V virtual machine that executes Linux-based applications off-chain, generating fraud proofs or validity proofs to settle results on a blockchain.
Chainscore © 2026
definition
BLOCKCHAIN VIRTUAL MACHINE

What is Cartesi Machine?

The Cartesi Machine is the deterministic, Linux-capable virtual machine at the core of the Cartesi Rollups framework, enabling complex off-chain computation for decentralized applications.

The Cartesi Machine is a deterministic, RISC-V-based virtual machine that executes application logic off-chain with the same guarantees as on-chain execution. It runs a full Linux operating system, allowing developers to build decentralized applications (dApps) using standard software components, programming languages (like Python, C++, or Rust), and libraries. This architecture moves intensive computation off the base layer blockchain, drastically reducing costs and eliminating computational limits while maintaining cryptographic security through fraud proofs and verifiability.

Its determinism is crucial, meaning that given the same initial state and input, the machine will always produce an identical final state and output. This property enables the Cartesi Rollups framework to resolve disputes: if a node claims an incorrect state transition, any other participant can challenge it by re-executing the computation in a verifiable fraud proof. The machine's state is represented by a cryptographic hash, or state hash, which is periodically submitted to the underlying Layer 1 blockchain (e.g., Ethereum, Polygon) for consensus.

The machine operates in two primary phases: the execution phase, where it processes transactions and updates its state off-chain, and the verification phase, where its final state can be challenged and proven correct on-chain. This separation is the foundation of Cartesi's optimistic rollup design. Developers interact with it by defining their dApp's logic, which is compiled into a machine image—a reproducible snapshot that includes the OS, runtime, and application code—ensuring every node executes the exact same environment.

By providing a mainstream development environment, the Cartesi Machine addresses a key limitation in Web3: it bridges the gap between traditional software engineering and blockchain development. Complex applications that were previously impossible or prohibitively expensive—such as sophisticated DeFi strategies, AI inference engines, or fully on-chain games—can be built without the constraints of Solidity or Ethereum's EVM gas limits. This unlocks a new design space for dApps that require heavy computation or real-world data processing.

how-it-works
ARCHITECTURE

How the Cartesi Machine Works

The Cartesi Machine is the deterministic, application-specific RISC-V virtual machine that executes the off-chain computational logic for Cartesi Rollups.

The Cartesi Machine is a deterministic, application-specific RISC-V virtual machine that executes the computational logic for Cartesi Rollups off-chain. It provides a reproducible Linux runtime environment where developers can run complex computations using standard software stacks, compilers, and libraries. This design decouples intensive processing from the base layer blockchain, allowing for computations that would be prohibitively expensive or impossible to perform directly on-chain, while maintaining cryptographic guarantees of correctness through fraud or validity proofs.

At its core, the machine is an emulator that replicates a full RISC-V microprocessor architecture, booting into a minimal Linux distribution. This environment supports mainstream programming languages like Python, C++, and Rust, enabling developers to build decentralized applications (DApps) without learning new domain-specific languages. The machine's execution is deterministic, meaning that given the same initial state (cartesi-machine --initial-hash) and input data, it will always produce an identical final state and output hash, a property essential for verifiable computation and dispute resolution.

The machine's operation is managed by a Cartesi Node, which orchestrates its execution based on inputs from the base layer. When a computation is requested, the node instantiates the machine, loads the application, processes the inputs, and produces a state hash. This hash, a cryptographic commitment to the machine's entire state, is then submitted on-chain. The lightweight on-chain contracts only need to verify these hashes and associated proofs, not re-execute the computation, dramatically reducing gas costs and enabling scalable, complex application logic.

key-features
CARTESI MACHINE

Key Features

The Cartesi Machine is a deterministic RISC-V virtual machine that executes Linux OS applications off-chain, bridging mainstream software development with blockchain security.

01

Deterministic RISC-V Emulator

At its core, the Cartesi Machine is a deterministic emulator of the RISC-V instruction set architecture. This guarantees that any computation, given the same initial state and inputs, will produce an identical, verifiable output every time. This determinism is the foundation for verifiable off-chain computation, allowing complex application logic to be executed outside the blockchain while remaining provably correct.

02

Full Linux Runtime Environment

Unlike typical smart contract VMs, the Cartesi Machine boots a complete, minimal Linux operating system. This provides a standard environment where developers can run applications written in any programming language (C++, Python, Rust, etc.) using mainstream libraries, compilers, and tools. It effectively removes the technical constraints of the EVM, enabling the development of sophisticated decentralized applications (DApps) with familiar software stacks.

03

Off-Chain Execution with On-Chain Verification

The machine executes application logic off-chain, avoiding the prohibitive gas costs and throughput limits of on-chain computation. Only the final result and a compact cryptographic proof (a Cartesi State Hash) are submitted to the blockchain. Through optimistic rollups and interactive dispute resolution, any invalid result can be challenged and adjudicated on-chain with minimal computational overhead, ensuring the system's security inherits from the underlying blockchain.

04

Reproducible Machine Snapshots

The entire state of the Cartesi Machine—including memory, registers, and storage—can be captured as a cryptographic hash. This machine snapshot serves as an immutable, concise representation of the computation's state at any point. It enables features like:

  • State synchronization between participants.
  • Efficient verification by replaying from a known snapshot.
  • Composability of different computational steps.
05

Scalable Data Availability

The architecture separates computation from data. Large input data (like machine learning models or game assets) is made available off-chain through Data Availability Committees (DACs) or other solutions. The machine only needs a cryptographic commitment (e.g., a Merkle root) to this data on-chain. This design allows DApps to process gigabytes of data without bloating the underlying blockchain, solving a key scalability challenge.

06

Application-Specific Rollups

Each Cartesi DApp runs in its own isolated Cartesi Machine instance, creating an application-specific rollup (often called an AppRollup). This provides:

  • Sovereign scalability: The app does not compete for block space with others.
  • Customizability: Developers can choose VM configurations and data availability models suited to their app.
  • Modular security: The security of one AppRollup is independent of others, containing any potential faults.
determinism-requirement
CARTESI MACHINE

The Critical Role of Determinism

This section explains why deterministic execution is a non-negotiable requirement for blockchain-based computation and how the Cartesi Machine achieves it.

In blockchain contexts, determinism refers to the property where a computation, given the same initial state and input, will always produce the exact same output and final state, bit-for-bit. This is the foundational requirement for achieving consensus across a decentralized network of nodes, as all participants must be able to independently verify and agree on the result of a smart contract or off-chain computation. Without determinism, nodes would reach different conclusions, making decentralized agreement impossible and breaking the trustless model of the blockchain.

The Cartesi Machine is a deterministic, RISC-V-based virtual machine that provides a reproducible computational environment. It achieves determinism by meticulously controlling all sources of non-determinism inherent in general-purpose computing, such as - instruction timing, - floating-point arithmetic rounding modes, - memory access patterns, and - system call behavior. By fixing these variables and providing a fully isolated, instruction-accurate emulation of the RISC-V ISA, the Cartesi Machine guarantees that any computation it runs will be perfectly reproducible by any other node on the network, regardless of the underlying hardware or operating system.

This capability is critical for enabling verifiable off-chain computations. Complex applications, like sophisticated games or AI models, can be executed off-chain within the Cartesi Machine. The deterministic record of this execution, including its final state hash, can then be submitted on-chain. Any dispute about the result can be settled by having a single validator re-execute the precise steps of the Cartesi Machine in a challenge protocol, with the blockchain itself acting as the ultimate arbiter of truth. This process, known as verification gaming, relies entirely on the machine's deterministic properties.

The engineering challenge solved by the Cartesi Machine is significant. Traditional virtual machines and containerized environments are not designed for this level of bitwise reproducibility. Cartesi's approach goes beyond simple emulation to create a cryptographically-secure trace of execution. Every step, from processor micro-architecture details to device I/O, is controlled and logged, ensuring the entire process is a closed system. This makes the machine's state a pure function of its initial inputs, which is the gold standard for trustless, decentralized verification.

proof-mechanisms
CARTESI MACHINE

Proof Mechanisms & Settlement

The Cartesi Machine is a deterministic RISC-V virtual machine that executes complex computations off-chain, generating cryptographic proofs for on-chain verification. It enables verifiable, scalable smart contract logic using standard software components.

01

Deterministic RISC-V VM

The Cartesi Machine is a deterministic RISC-V instruction set architecture (ISA) virtual machine. This means:

  • It executes computations with perfect reproducibility, a prerequisite for generating verifiable proofs.
  • Developers can write logic in any language that compiles to RISC-V (e.g., C++, Rust, Python).
  • It provides a full Linux OS environment, allowing the use of standard libraries and tools.
02

Verifiable Computation Proofs

The core mechanism is generating cryptographic proofs of off-chain execution.

  • The machine's state transition is hashed at each step, creating a Merkle tree of the entire computation.
  • A Verification Game (interactive fraud proof) or a zk-SNARK can be used to compactly prove the result's correctness.
  • The final, succinct proof is submitted on-chain for settlement, ensuring trustless verification.
03

Off-Chain Execution Layer

It acts as a scalable off-chain execution layer for blockchains.

  • Complex, computationally intensive logic (e.g., AI inference, complex games) runs off-chain on the Cartesi Machine.
  • Only the final state and a tiny proof are posted to the underlying L1 or L2 (like Ethereum or Optimism).
  • This moves the computational burden off-chain while maintaining cryptographic security guarantees.
04

Architectural Components

The system comprises several key components:

  • Cartesi Node: Software that hosts and runs the RISC-V VM off-chain.
  • Cartesi Rollups: A framework that uses the machine for optimistic rollup or zk-rollup style settlements.
  • On-chain Verifier: A smart contract that validates the submitted proofs.
  • This architecture decouples execution from consensus and data availability.
05

Use Cases & Applications

Enables blockchain applications previously deemed infeasible due to gas costs or EVM limitations.

  • DeFi: Complex financial simulations and risk calculations.
  • Web3 Gaming & AI: Running game engines or machine learning models verifiably.
  • Data-Intensive Oracles: Performing verifiable computations on large datasets.
  • Scientific Computing: Reproducible, trust-minimized research computations.
06

Comparison to EVM & Other VMs

Contrasts with traditional blockchain virtual machines:

  • EVM/SVM: Limited, sandboxed environments with high on-chain cost per operation.
  • Cartesi Machine: Full Linux environment, unbounded computation off-chain, standard toolchain.
  • Key Difference: The EVM is the execution environment. Cartesi uses the VM to generate a proof about an execution, which is then verified on-chain.
developer-advantages
CARTSI MACHINE

Developer Advantages

The Cartesi Machine is a verifiable, deterministic RISC-V virtual machine that allows developers to run complex, intensive computations off-chain while maintaining blockchain-level security guarantees.

COMPUTATIONAL ARCHITECTURE

Cartesi Machine vs. Traditional Smart Contract VMs

A technical comparison of the Cartesi Machine's Linux-based RISC-V environment against conventional blockchain virtual machines.

Computational FeatureCartesi Machine (RISC-V)EVM (Ethereum)WASM (Polkadot, NEAR)

Instruction Set Architecture (ISA)

RISC-V

EVM-specific bytecode

WebAssembly (WASM)

Underlying OS Environment

Full Linux OS

Minimal sandbox

Minimal sandbox

Standard Library & Tooling

Entire GNU/Linux toolchain

EVM-specific opcodes

WASM-compatible libraries

Computational Limit per Operation

Virtually unlimited (off-chain)

Block gas limit

Block weight / gas limit

Deterministic Execution Proof

True

True

True

Native Support for Complex Math (e.g., Floating Point)

True

Limited (via software emulation)

Direct File System Access

True

Development Languages

Any (C++, Rust, Python, etc.)

Solidity, Vyper, Yul

Rust, C++, AssemblyScript

ecosystem-usage
CARTSI MACHINE

Ecosystem Usage & Applications

The Cartesi Machine is a deterministic RISC-V virtual machine that executes complex computations off-chain. Its primary applications bridge the gap between traditional software development and blockchain execution.

02

Verifiable Off-Chain Computation

The core function is providing verifiability for any computation run on its Linux OS. Developers can write code in standard languages (Python, C++). The machine produces a cryptographic hash of the entire computation state. If a result is disputed, the blockchain can adjudicate by recreating the precise execution steps, enabling trustless collaboration on complex tasks without centralized servers.

03

Data Availability & Inputs

Applications feed data into the Cartesi Machine via the Cartesi Rollups framework. Inputs are recorded on the base layer (e.g., Ethereum, Polygon) as calldata, ensuring data availability. The machine processes these inputs in a deterministic order, allowing any observer to reconstruct the exact state. This mechanism is crucial for applications requiring reliable external data, such as decentralized exchanges or oracle computations.

04

Dispute Resolution Engine

When participants disagree on a computation's result, the Cartesi Machine enables an optimistic rollup-style dispute resolution. The system performs a binary search over the execution trace to pinpoint the first step of disagreement. This "fault proof" is then verified on-chain in a single step, minimizing gas costs. This makes it economically secure to run arbitrarily large computations.

05

Portable & Reproducible Environments

The machine's state is defined by a machine snapshot hash, encapsulating the entire OS, libraries, and application code. This creates a portable and reproducible computational environment. Any party can instantiate an identical machine from this hash to verify results independently, eliminating "it works on my machine" problems and ensuring deterministic execution across all nodes.

06

Bridging Web2 & Web3 Development

By providing a full Linux runtime environment, Cartesi allows developers to use mainstream software stacks (e.g., Node.js, TensorFlow, NumPy) without rewriting for a constrained EVM. This drastically lowers the barrier to entry, enabling the porting of existing open-source libraries and tools directly into decentralized applications, unlocking new use cases in DeFi, gaming, and data science.

CARTESI MACHINE

Technical Deep Dive

The Cartesi Machine is the deterministic, application-specific RISC-V virtual machine that executes the computational layer of Cartesi Rollups, enabling complex logic to run off-chain with verifiable results.

The Cartesi Machine is a deterministic, application-specific RISC-V virtual machine that executes complex computations off-chain for a Cartesi Rollup. It works by running a Linux OS environment where a decentralized application's logic is processed. The machine's entire state is defined by a concise cryptographic hash, and its execution produces a state transition that can be cryptographically verified on-chain, ensuring the computation's integrity without re-executing it. This architecture allows developers to use standard software components and programming languages while leveraging blockchain security.

Key Process:

  1. A computation request is submitted.
  2. The Cartesi Machine executes the DApp's logic in its isolated Linux environment.
  3. The resulting state hash and any outputs are finalized.
  4. A verification game (typically an interactive fraud proof) can be triggered if the result is disputed, ultimately settling the correct outcome on the base layer.
CARTESI MACHINE

Frequently Asked Questions

Common technical questions about the Cartesi Machine, the deterministic RISC-V virtual machine that powers Cartesi's layer-2 infrastructure.

The Cartesi Machine is a deterministic, open-source virtual machine that emulates a full RISC-V architecture, allowing developers to run complex, portable computations off-chain with verifiable results on a blockchain. It provides a complete Linux operating system environment, enabling the use of standard programming languages, libraries, and tools. By executing computations inside this verifiable VM, dApps can achieve massive computational scale without burdening the underlying blockchain, with the final result being settled on-chain through a verification game.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team