Cartesi & Syscoin Data Availability
Combining the computational power of Cartesi and the data availability (DA) of Syscoin, to leverage the benefits of both platforms.
Core Concept and purpose statement
This project aims to demonstrate the feasibility and potential of integrating Cartesi’s layer-2 solution with Syscoin’s NEVM, enabling developers to create scalable, secure, and decentralized applications using mainstream software stacks and tools. The project specification will elucidate the optimal method for retrieving and validating raw data from Syscoin’s Data Availability solution and processing it within the Cartesi Machine.
How will you use Cartesi, specifically?
Cartesi is a layer-2 solution that enables developers to use mainstream software stacks and tools to build smart contracts on top of any blockchain. Cartesi provides a Linux-based virtual machine (VM) that runs off-chain, but can be verified on-chain, allowing for complex and intensive computations to be performed without compromising the security and decentralization of the blockchain.
We are using Cartesi for our project because it offers several advantages that make it suitable for our needs. Some of these advantages are:
-
Programming flexibility: Cartesi allows us to use familiar programming languages and tools, such as Python, R, SQL, or Pandas, to create and execute our smart contracts. This reduces the learning curve and the development time, as well as the complexity and cost of the code. It also enables us to access a rich set of libraries and frameworks that can enhance the functionality and performance of our smart contracts.
-
Scalability: Cartesi enables us to perform large-scale computations off-chain, without being limited by the gas fees, block size, or throughput of the blockchain. This allows us to process and analyze the big data that is accessible and retrievable from Syscoin’s network-enhanced virtual machine (NEVM), which offers fast, low-cost, and interoperable transactions, as well as Ethereum-compatible smart contracts and decentralized applications. By using Cartesi’s VM, we can handle complex tasks such as machine learning, data mining, or optimization, that would otherwise be impractical or impossible on-chain.
-
Interoperability: Cartesi allows us to deploy our smart contracts on any blockchain that supports smart contract execution, such as Syscoin’s NEVM, Ethereum, Binance Smart Chain, or Polygon. This gives us more flexibility and choice in selecting the best platform for our project, as well as the possibility to interact with other blockchains and platforms that offer different features and functionalities.
In summary, by combining Cartesi and Syscoin, we can leverage the best of both worlds: a layer-2 solution that enhances the performance and functionality of the off-chain processing power, and a layer-1 solution that ensures the data availability and security of the on-chain transactions. We believe that this project will add value to the Cartesi ecosystem or tech stack by expanding its reach and compatibility with other blockchain platforms, enhancing its performance and functionality with more advanced and sophisticated DApps, such as data analysis and machine learning, and increasing its adoption and innovation with more developers and users who can benefit from its features and advantages.
Technical details
We will develop a technical specification and implement prototypes in iterative cycles to validate our hypotheses. At the conclusion of each cycle, we will compile a report outlining the results, whether they indicate success or failure.
In this proposal, for example, we aim to investigate both Pull and Push strategies for data ingestion using Syscoin and Cartesi solutions.
Our exploration will progress from simpler approaches to more complex ones, like in the data arbitration model:
-
Authority
-
Quorum (committee)
-
Dave [1]
Below, we outline several topics. This does not imply a fixed exploration or execution order, it serves as a flexible guide for potential areas of investigation.
Exploration Topics
1. Data ingestion strategy
What are the strategies for injecting a large dataset into the Cartesi Machine?
-
Push strategy: when the end user sends the data to the Cartesi Machine using an
advance
command -
Pull strategy: when the DApp inside the Cartesi Machine requests data from the outside world
2. Zero Knowledge
Is it possible to use zero-knowledge proofs to prove the starting point of a Cartesi Machine for a large dataset?
-
risc0 computational capacity
-
stark snark conversion
-
Merkle Tree eq Syscoin’s Hash proof
3. Syscoin integration
What are the components that need to be built for this integration?
-
Web3DAClient
-
SyscoinFetcher
-
DAContract
4. Arbitration
What is the best possible arbitration solution for blockchain data availability?
-
Authority
-
Quorum (committee)
-
Dave [1]
5. Cartesi Integration
- How to exchange the data between the internal CM components?
[1] Dave Arbitration
Inspired by the biblical David versus Goliath, the Dave Arbitration approach symbolizes the capability of a smaller computing entity to win a challenge against a larger counterpart. In this context, a single node has the capacity to validate the accuracy of data in contrast to a cluster of nodes. This arbitration methodology underscores the correctness of smaller computing resources in decentralized validation processes.
Value Proposition
This product/service leverages the computational power of Cartesi’s layer-2 solution to process and analyze the big data that is accessible and retrievable from Syscoin’s network-enhanced virtual machine (NEVM), enabling developers to create scalable, secure, and decentralized applications using mainstream software stacks and tools. By integrating Cartesi with Syscoin, this product/service offers fast, low-cost, and interoperable transactions, as well as Ethereum-compatible smart contracts and decentralized applications. Moreover, by using PoDA protocol, this product/service ensures that the data needed to verify the off-chain computation is available to anyone who wants to verify it, without requiring the full data to be stored on the blockchain. This product/service also ensures the data availability of the blockchain itself, by using various methods to prevent data withholding attacks.
Estimated Duration and Funds Requested
Duration: 7 weeks
Funds request (USD): $16,800 USD
Subsequent Vision and Extensibility
In the future, we plan to add Filecoin support to our solution, which will enable us to leverage a decentralized storage network over IPFS. Filecoin is an open-source, public cryptocurrency and digital payment system that allows users to rent unused hard drive space. By integrating Filecoin with our solution, we will be able to offer more data storage options, as well as enhance the security and reliability of our data retrieval service. Our vision is to create a scalable and flexible DApp that can handle real-life and complex use cases using Cartesi Rollups, which have a powerful rollups technology with a Linux runtime. Cartesi Rollups allow us to move the bulk of the computation outside the blockchain, using any ledger as a data source but not as an execution environment. This way, we can overcome the scalability limitations of the Ethereum Virtual Machine (EVM) and use any package or library that is available for Linux (like Pandas).
Reusability and Other Use Cases
The three main components could be reused by other DApps to handle large and complex datasets that require advanced analysis and processing. It can also ensure the security and reliability of the data retrieval service. Some other potential uses for our solution are:
-
Data science: Everyone can use our solution to perform data science tasks, such as data cleaning, exploration, visualization, modeling, and evaluation. You can use any library or package that is available for Linux, such as Pandas.
-
Machine learning: Everyone can use our solution to train and deploy machine learning models, such as classification, regression, clustering, and reinforcement learning. You can use any framework or tool that is compatible with Linux, such as Keras, PyTorch, FastAI, and Ray.
-
Artificial intelligence: Everyone can use our solution to create and run artificial intelligence applications, such as natural language processing, computer vision, speech recognition, and generative adversarial networks. You can use any library or package that supports Linux, such as NLTK, SpaCy, OpenCV, and PyTorch.
These are just some of the examples of how you can use your solution for other purposes. There are many more possibilities and opportunities that you can explore.
Risks and Contingency Plans
Cartesi and Syscoin are two blockchain-based platforms that aim to provide scalability and interoperability for decentralized applications (DApps).
There challenges and risks that could arise from this an integration. Some of them are:
-
Technical complexity: Integrating two different platforms with different architectures and protocols could pose technical difficulties and require a lot of development resources and testing.
-
Security risks: Integrating two platforms could also introduce new attack vectors or vulnerabilities that could compromise the security or integrity of the DApps or the platforms themselves. For example, if one platform suffers a network outage, a malicious attack, or a bug, it could affect the other platform or the DApps that rely on them. Additionally, there could be potential issues with data privacy, custody, or compliance when transferring data or assets across platforms.
-
Economic trade-offs: Integrating two platforms could also involve economic trade-offs or opportunity costs that could affect the profitability or sustainability of the DApps or the platforms themselves. For example, if one platform has higher transaction fees, lower adoption, or lower liquidity than the other platform, it could affect the user experience, demand, or revenue of the DApps or the platforms. Using two tokens for the DApps might make them harder to adopt.
Success criteria
At the end of the project, we will release a technical specification based on our discovery exploration about how to integrate the Cartesi Rollups with Syscoin’s Data Availability.
Final report
At the end of this project, we will provide a detailed report containing any reasons for failure that we encountered during the specification process. This will allow others from community to overcome those issues and continue the project with confidence.
About Your Development team
Calindra
Calindra helps our partners to execute their digital strategy through a experienced and talented team.
Contributions to the Cartesi community:
Links and resources
Website: calindra.tech
LinkedIn: /company/calindra
Github: /Calindra
ERC-20 Payee address
0x7cE0AA3DFbB8abdCD0Ea426769ffD21302DAA8B8