Skip to main content


Cartesi Compute allows you to implement a function in which you receive a set of inputs and it provides an output. So you can think of a Compute dApp as a computational oracle that tells you the result of a computation.

Cartesi Rollups adds on top of this to preserve state, allowing the application to be called multiple times with each call's effects on its internal state being carried over to subsequent interactions. As such, it can keep a counter, a balance, and basically anything you would expect from a smart contract.

For example, if you want to implement a Chess game that has two players exchanging moves, you can implement it as a Rollups dApp that keeps the state (e.g., the chess board). However, you could also simply play the game off-chain and if there is a disagreement then collect all of both players' moves and send it to a Compute dApp for it to tell the winner.

What is Cartesi Compute SDK

Cartesi Compute SDK is the simplest infrastructure that dApps can use to run computations that would be impossible or too expensive to execute on-chain, either due to their complexity or to the amount of data to be processed. With the SDK, dApps run these computations off-chain, on a fully fledged Linux environment without compromising decentralization, in a way that is verifiable by the dApp participants.

On blockchain smart contracts, computations need to be run by all full-nodes participating in its network or shard. Because the block limit imposes a maximum computational throughput on the network, every dApp using blockchains' native computation competes for this global and scarce resource, thus remaining severely restricted.

On Cartesi Compute SDK (and on Cartesi as a principle), dApp participants try to first agree locally and off-chain on the result of the computation. If this is the case, there is no need to perform any logic on the blockchain itself, completely avoiding the accompanying fees.

Only if parties fail to achieve agreement, the blockchain will be used for dispute resolutions. In a sense, the blockchain serves as a supreme court, where an honest party can infallibly prove and enforce correct results. With well-aligned cryptoeconomic incentives, the supreme court should rarely, if ever, be used. Honest participants are incentivized to use the system in the most cost-effective way. Meanwhile, dishonest participants are turned down from misbehaving, knowing that misbehavior is always detected and the penalties are always enforced.

Moreover, even in case a dispute arises, the blockchain is not required to perform the full computation in order to determine who is behaving dishonestly. In fact, using an algorithm of interactive verification, the cost to perform such arbitration is negligible, even for extremely large computations.

The Cartesi Compute SDK abstracts these mechanisms away from the developer, making this powerful machinery very easy to use. In a way, Cartesi Compute can be seen as a black box system, where the dApp developer is not required to understand in detail how Cartesi works. Instead, they are given a minimalistic API to run complex computations off-chain with automatic dispute resolution guarantees.

© 2024 Cartesi Foundation Ltd. All rights reserved.

The Cartesi Project is commissioned by the Cartesi Foundation.

We use cookies to ensure that we give you the best experience on our website. By using the website, you agree to the use of cookies.