Key takeaways
- Cartesi uses optimistic rollups to enable smart contracts to run on layer two with million-fold computational improvements while maintaining Ethereum's security guarantees.
- Cartesi's Linux-based virtual machine allows developers to use mainstream programming languages and software components instead of being constrained to Solidity and the EVM.
- Cartesi is developing both a rollups solution for transaction and computation scaling and a sidechain for temporary data storage with developer-defined data retention windows.
- The CTSI token functions as fuel for transactions on the sidechain, rewards validators, and operates within a marketplace where validators can set service prices.
- Optimistic rollups enable DeFi applications to guarantee data availability and security by allowing validators to challenge incorrect computations within a specified time period.
Why Ethereum needs a second layer
Ashton Addison: What is Cartesi?▶ 00:20
Erick de Moura: Cartesi is a blockchain technology company that has existed for three years. It gathers academics and engineers who are working together to solve basic problems in the technical adoption of blockchain technology, namely the scalability and programmability of smart contracts.
Ashton: What will smart contracts on Ethereum look like when Cartesi has done its work?▶ 00:48
Erick: The original idea of Ethereum was to create a sort of world computer that would let smart contracts run on a blockchain in a totally decentralized way. The problem is that this computer performs very badly. It scales badly, it allows for little computation and storage, and the fees are very high. That became very clear around June last year, when Compound launched its token and DeFi mania began, and it became impossible for people to use the blockchain. We are solving two basic problems. First, we let smart contracts run on a second layer, which allows for a million-fold boost in computational capability and improves throughput, while keeping the same security guarantees as the underlying blockchain. We do that with an implementation of optimistic rollups.
Optimistic rollups don't rely immediately on the full security of the blockchain, only when it's needed.
Linux instead of Solidity
Ashton: Why build around Linux, and how does that differ from other Ethereum layer 2 projects?▶ 02:58
Erick: The second thing that sets us apart is that we developed a virtual machine that lets developers create smart contracts using mainstream software stacks. Instead of using Solidity and being constrained by the limits of the EVM, you get a full virtual machine that runs Linux, and we believe that is a massive gain in productivity. Other platforms usually try to scale Ethereum but keep using the EVM or EVM-like environments and porting Solidity. Solidity was created for this purpose, and a whole system of tooling needs to mature around it. Linux is an operating system that has been evolving for decades. Thousands of software components, libraries, services, frameworks and languages have been developed on top of it over the last 30 years or more. As a smart contract developer, you can count on this vast array of components to build your logic, which opens up a vast range of possibilities.
DeFi and the security question
Ashton: How does Cartesi address the scaling problems that DeFi exposed on Ethereum?▶ 04:39
Erick: It starts with the fact that we are implementing optimistic rollups. Rollups are a layer 2 scalability technique proposed by people related to the Ethereum Foundation, and they are a preferred kind of layer 2 solution. Other approaches, like sidechains and plasma, have some deficiencies. Rollups let applications guarantee data availability, which is essential for security, especially in DeFi applications where a lot of money is involved. Like other projects implementing rollups, we will allow for scalable DeFi applications. But because we also support Linux, DeFi developers will be able to build much more elaborate and complex DeFi logic.
Ashton: Doesn't moving computation off chain mean giving up decentralization? How does security compare with dapps on Ethereum itself?▶ 06:16
Erick: In the optimistic rollups design, instead of Ethereum validators validating the computation and transactions, you have a set of validator nodes working on layer 2. They usually work on a small set of applications, or a single application, instead of all the applications in the universe as Ethereum does. That is why they scale well. It is secure because one of these off-chain validators does the entire computation and proposes a result back to the blockchain. All the other validators then have a chance to verify that the computation is correct. If it is not, they have a long enough time period to challenge the claim and prove to the blockchain that it was wrong. Optimistic rollups don't rely immediately on the full security of the blockchain, only when it's needed. That is why they scale very well while preserving the security of the underlying blockchain.
Linux is an operating system that has been evolving for decades.
Token, roadmap and adoption
Ashton: How does the Cartesi token fit into the ecosystem?▶ 08:27
Erick: Cartesi is developing rollups on one side and a sidechain to scale data for decentralized applications on the other. The rollups scale transactions and computation, and the sidechain scales data. The sidechain is for temporary data. Regular blockchains store data forever, which is very expensive. We are designing a sidechain in which applications define a window of time in which the data must be preserved, and then it is deleted. On the sidechain, the token works as Ethereum does on its blockchain. It is the fuel for users to insert transactions and for validators to receive rewards for doing their job. The other use is a marketplace for validators using the rollups infrastructure. Validators will be able to set their prices, and users will be able to say what they want to pay for the services.
Ashton: What is already in production, and what is coming?▶ 10:36
Erick: In 2020 we developed the first piece of the technology and released a first usable SDK. It is a computational oracle that lets smart contracts define complex computational jobs that are performed off chain and returned to the blockchain. Now we are implementing optimistic rollups, and we intend to have testnets by Q2. We are developing the sidechain in parallel. In December we released the proof-of-stake system, which lots of people already participate in and which is the foundation for the sidechain. The complete sidechain will take a while, and we will announce other releases along this year.
Ashton: What will be the key to rapid adoption in 2021?▶ 11:48
Erick: First, we are trying whatever we can to make people aware of the breakthrough Cartesi is bringing to the industry. We are setting a new standard for developing smart contracts that we believe is much more powerful. We will work closely with developers, other blockchain projects, DeFi startups and gaming startups, and from time to time we will deploy incentive programs. Last year we ran a grant program, the Cartesi incubation program, and three projects are now developing their applications using the first version of our tech. That is the mechanism we will keep using to bring people onto our platform. They will see they can do amazing things, and they will spread the word.
This interview has been edited for length and clarity. Recorded January 2021.
