The Radically Simple Guide to: Developer Tools and Resources
Your go-to guide to understanding what Cartesi brings to developers.
Written By Marketing Unit
If you’re generally familiar with blockchain technology, you know that nodes are a fundamental part of any network. Cartesi is no different. However, in the Cartesi Rollups architecture, nodes have a special role as decentralized middleware that supports the work done by the Cartesi Virtual Machine (CVM) that runs on top of them.
Let’s dive into Cartesi Nodes — not to be confused with Noether for CTSI staking — and look into what they do, how they work, and setting one up.
The Cartesi whitepaper defines Cartesi Nodes as follows:
“The Cartesi Node is the software and hardware infrastructure that hosts the off-chain components of Cartesi dApps. Each user that wishes to interact with a Cartesi dApp must have a Cartesi Node at their disposal.”
(*Note: The exact context for these Nodes is that of a tool known as Cartesi Compute, but the same also applies to Nodes for Cartesi Rollups)
In other words, Cartesi Nodes are the network of individual computers that run the CVM and host Cartesi dApps. They’re very similar to nodes on other blockchains, but different in the sense that they operate within the context of a rollup solution like Cartesi Rollups. This is where we start to see the nuance around them.
A step-by-step look at what Cartesi Rollups do will help us break this down. When supporting dApps that run on the CVM, Cartesi Rollups need to:
In order to do this, they need nodes that can interact with both on-chain smart contracts and an off-chain virtual machine. Cartesi Nodes are precisely that “middleman” that’s responsible for communicating between the two — albeit, in a secure and decentralized way.
The responsibilities of Cartesi Nodes have to be two-fold in order to play this “middleman” role in Cartesi Rollups. They have to read information and verify information. Therefore, Cartesi Nodes can either be:
Right now, Cartesi Nodes usually operate as Validator Nodes that can fulfill both roles. Reader Nodes are currently under development by the Cartesi team.
Looking at some key concepts behind Cartesi Nodes’ operations will give us a high-level understanding of how they take care of their responsibilities. It will also familiarize us with the kind of terms that will show up when running a dApp on the CVM that makes use of Cartesi Nodes.
We can examine these as the inputs that Cartesi Nodes get from the main chain and forwards to the CVM or the outputs that it puts back to the main chain as “claims.”
Portals: Interactions with Cartesi Nodes would typically start with Portals. These are a way to communicate on-chain information to the CVM off-chain. Nodes use Portals to move assets from the main chain and into the dApp they’re running. Once there, these assets can be transferred and moved around using the typical software logic found in a Linux OS.
(Note: There are also app-specific inputs that come directly from users and don’t go through a portal. These inputs have no assets associated with them.)
Epochs: After the CVM processes the information that comes from the blockchain, Cartesi Validator Nodes batch these operations and publish them back to the main chain. Then these changes are reported to the main chain in the form of vouchers or notices. The cadence of these batches is what’s called an Epoch.
Reports: Then we have a different kind of operation that Cartesi Nodes take care of. Reports are generally used as logs or diagnostics for dApps that are running on the CVM. They’re commonly used to keep track of application errors and other information, but they do not have any on-chain effects.
Cartesi Nodes are already running many dApps in the Cartesi ecosystem. Each one of these makes use of Cartesi Nodes in the way explained above. You can explore how this mechanism for relaying information off-chain and back on chain has helped use cases in gaming, DeFi, and AI via Cartesi Rollups and the CVM.
In fact, if you have a dApp idea that makes use of Cartesi technology, it’s likely that you’d be setting up a Cartesi Node for yourself. The process for running one locally is very simple and outlined here.
Do you think you grokked Cartesi Nodes? Test your knowledge by taking the Grokking Cartesi Node quiz in the Cartesi questboard and earn community points.
Learn more about Cartesi in general by reading the docs. You can also stay in the loop with everything happening in the Cartesi ecosystem by joining the community.
Subscribe to the newsletter to keep up with new episodes and Cartesi developments
Your go-to guide to understanding what Cartesi brings to developers.
Written By Marketing Unit
Everything you need to know to start building on Cartesi
Written By Marketing Unit
Your go-to guide to understanding the power of Linux onchain.
Written By Marketing Unit
© 2024 The Cartesi Foundation. All rights reserved.