L1 congestion during project launches leads to delays, slow responsiveness, and concurrency issues, hindering DeFi strategies. Fast finalization is crucial.
This is the total amount allocated to Anastasia Labs - Midgard: Cardano Layer 2.
NB: Monthly reporting was deprecated from January 2024 and replaced fully by the Milestones Program framework. Learn more here
Proposing a high-throughput Cardano L2 with fast finality and relaxed SC execution constraints. Enhances scalability, speed, cost-efficiency, enables high-volume transactions without congesting the L1
No dependencies
All outputs will be fully open-source under MIT license, and available on Github
Our proposed solution, Midgard, is a Layer 2 (L2) scaling solution for the Cardano blockchain, designed to enhance scalability, speed, and cost-efficiency while preserving the security and decentralization of the Cardano Layer 1 (L1). Midgard aims to address the issues of network congestion and long wait times that occur during high-frequency chain activities, such as highly anticipated project launches.
Midgard is isomorphic to the Cardano L1, meaning that decentralized applications (DApps) can seamlessly redeploy on Midgard using the exact same code and tech stack. This feature significantly reduces the burden on developers, allowing them to leverage the benefits of Layer 2 without modifying their existing codebase, tech stack, or architecture. This ease of transition encourages broader adoption and utilization of the Layer 2 solution.
Midgard is built on a robust codebase, largely vendored from the Cardano ledger, but with significant modifications to consensus mechanisms and the introduction of logic to regulate a constrained validator set. Key improvements include:
Midgard offloads non-critical financial activities and high-volume transactions, such as NFT launches, staking platforms, on-chain games, and meme-coin trading, from the Cardano L1 to the Layer 2. By managing these activities on Midgard, the main chain experiences reduced congestion, ensuring that critical transactions on the L1 are processed efficiently, even during peak periods.
Despite offloading significant transaction volume, Midgard remains dependent on the Cardano L1 for security and consensus. It regularly interacts with the main chain to publish checkpoints of the L2 state, ensuring continuous transaction flow and fee generation for the Cardano L1. This integration supports the economic model of Cardano, ensuring sustainability and growth of the main network.
Several projects, including FluidTokens, have already committed to utilizing Midgard. This early adoption showcases the confidence of the community and developers in the capabilities of Midgard to deliver a high-performance Layer 2 solution.
By offloading non-critical and high-volume activities like NFT launches, staking platforms, on-chain games, and meme-coin trading to the L2, Midgard will help alleviate congestion on the Cardano Layer 1 (L1). This ensures that critical financial transactions, especially during high traffic periods, can be processed more efficiently, reducing risks for users involved in lending, borrowing, and other time-sensitive DeFi activities.
Midgard will cater specifically to users engaged in high-frequency trading activities, such as arbitrage and liquidation auctions, by providing the necessary speed and scalability. This prevents users from leaving the Cardano ecosystem for other platforms like Solana or Polygon, thereby retaining liquidity and growing the user base within Cardano.
Midgard will spread the transaction load by conducting and settling activities during low-congestion periods. This leads to a more balanced and efficient use of Cardano's L1 block space, enhancing the overall performance and reliability of the network.
Midgard’s dependency on the Cardano L1 for security and consensus means it will regularly interact with the main chain, paying fees for publishing checkpoints. This continual interaction supports the economic model of Cardano by ensuring that L1 remains financially sustainable and benefits from the increased activity generated by the L2.
FluidTokens has successfully built and delivered multiple DeFi projects on Cardano while Anastasia Labs team consists of highly skilled developers who have made significant contributions to various community projects, including Lucid, Agora, Liqwid-Plutarch-Extra. Our developers have had experience developing and publishing end-to-end DApps including production projects such as Discovery (SundaeSwap Liquidity BootStrapping Mechanism). We have audited a large number of protocols including MinSwap, Genius Yield, Optim Finance, Wanchain, Lenfi, Encoins, FluidTokens, Spectrum Finance, and Atrium Labs. In addition to our project involvement, our team has been actively engaged in the developer experience domain. We have actively participated in educational panels focused on DApp Security Practices and Design Patterns, and our members have served as co-chairs of the IOHK developer experience working group.
Furthermore, our collaboration with Emurgo Academy has been instrumental in educating aspiring developers, with our team playing an essential role in this endeavor. We have also recognized and recruited a number of exceptional talents from the courses.
We have developed software development kits (SDKs) that facilitate the integration of existing dApps with other systems through off-chain code. Our team has also designed various protocols, including bridges and staking systems, while also actively contributing to open-source smart contract languages and their associated standard libraries.
With broad range of expertise within the Cardano Ecosystem we are a highly capable and versatile development firm
Technical architecture specification
Define the network topology and consensus algorithm for the sidechain.
Specify the mechanism for data storage and retrieval on the sidechain.
Acceptance Criteria: Approval of network topology and consensus algorithm by project lead.
Evidence of Milestone Completion: Submission of network and consensus mechanism documentation, along with all other technical documentation specified above on Github.
Layer 2 Node infrastructure
Milestone Outputs:
Acceptance Criteria:
Evidence of Milestone Completion:
Security Inheritance Mechanism
Milestone Outputs:
Acceptance Criteria:
Evidence of Milestone Completion:
L2 Throughput optimization
Milestone Outputs:
Acceptance Criteria:
Evidence of Milestone Completion:
Production instance
Marks the culmination of development efforts, from testing to an operational blockchain ready to use.
Acceptance Criteria:
Evidence of completion:
Milestone Outputs:
Acceptance Criteria:
Evidence of Milestone Completion:
Team FluidTokens.com
Matteo Coppola: Cloud Architect, Backend and Smart Contract Developer, https://twitter.com/0xMetamatt
Raul Antonio Rosa Padilla: Smart Contract Developer, Offchain integrations, https://twitter.com/ElRaulito_cnft
Team Anastasia Labs
Philip DiSarro, Compiler & Programming Language Research, https://twitter.com/phil_uplc
Philip is an expert in the field of Compiler Development & Programming Language Theory. He has made significant open-source contributions to the Cardano developer ecosystem. As a co-chair of the IOHK developer experience working group he worked to identify and resolve pain points that DApp developers experience in Cardano. He has a vast wealth of professional experience in smart contract security and auditing on Cardano; and was responsible for the identification and resolution of a large number of critical exploits in production open-source smart contracts. Recently, Philip has concentrated his efforts on designing and deploying effective zero-knowledge proof applications within the Cardano ecosystem.
Philip is a senior Haskell developer on the XSY team, a consultant and lecturer for Emurgo, and the CEO and co-founder of Anastasia Labs.
Jonathan Rodriguez, Functional Programming & TypeScript SDKs, https://twitter.com/solidsnakedev
Jonathan is a highly skilled smart contract developer specializing in Cardano, a blockchain technology that he is deeply passionate about.
His passion in smart contract development drives him to constantly polish his technical knowledge. In the pursuit of that knowledge he obtained the following certifications: Cardano Solution Architect, Cardano Developer Professional, and Associate Certificate.
With an extensive background in Haskell development, which is a critical language for Cardano, he possesses a thorough understanding of functional programming concepts.
His expertise extends to various aspects of the Cardano ecosystem, including the Cardano Toolchain, Transaction Structure, Plutus Smart Contracts, Native Tokens, DApp Connector, and other essential components.
Jonathan is well-versed in conducting use case analysis and tokenomics, as well as interfacing with decentralized storage, server APIs, and integrating databases.
He is knowledgeable in establishing robust CI/CD (Continuous Integration/Continuous Deployment) flows and integrating them into development processes. Additionally, he is skilled in conducting thorough unit testing to ensure the reliability and security of his smart contract solutions.
Lead Haskell developer - 1 individual - ADA 150K
Senior Haskell developer - 2 individuals - ADA 100K each
Lead Blockchain architect - 1 individual - 150K
Recent user activity trends in the DeFi space reveal a high demand for high frequency trading activities.
Layer one blockchains are typically designed to prioritize security and decentralization over throughput, and as such they are often not suited to facilitate such activity. There is a cost to security and decentralization and often increased throughput must come at the expense of security or decentralization. How then can you accommodate users who want to engage in high throughput and fast finality transactions without compromising the integrity of the layer one?
In many cases, Hydra is a great solution; however, there are many use-cases which are not suited for the ephemeral nature of Hydra deployments. There are a variety of approaches that blockchains take to accommodate such users. One of the most tried and tested approaches is the development of layer 2 solutions. Using layer 2s, users can engage in high-frequency trading activities with the speed and scalability they require, while the layer one blockchain maintains its focus on security and decentralization. Layer 2 solutions achieve this by offloading transaction processing from the main chain, allowing for rapid transaction finality and increased throughput.
Currently Cardano does not have a general purpose layer 2 solution. As a result, when users want to engage in certain high-frequency trading activity (i.e. for arbitrage or other financial instruments that require quick response times that Hydra is not suited for) they are often forced to leave the network and look elsewhere (i.e. to Solana and Polygon).
Midgard, our layer 2 solution, will provide users who wish to engage in high frequency trading activity with the ability to do so without exiting the Cardano ecosystem.
Furthermore, during normal network operation the user experience on the Cardano L1 is extremely well-designed and community feedback reflects that. Transaction are cheap, you don't pay when they fail, the fees are consistent, and transactions do only exactly what users are expecting (as presented to them by their wallets). However, during hyped launches and periods with extremely high transaction volume, the network can become congested. In such cases, the security of the network is preserved and the blockchain continues to work as intended with strong resiliency. That said, some DeFi protocols subject users to risk in high congestion environments because they rely on the ability to get critical transactions, such as collateral liquidation, into a block. This can leave users unable to reinforce their positions on synthetic platforms or increase their collateral on lending platforms, which in turn results in their positions being liquidated. A lot of this network congestion can be alleviated by off-ramping non-critical financial instrument volume such as NFT launches/trading, CNT staking platforms, on-chain games, and meme-coin launches to the layer 2. These activities are often centralized by nature; the NFT/FT users receive is commonly just determined off-chain by the relevant party. Many such applications are centralized by nature, and it doesn’t make sense to for them to pay the costs associated with the security and decentralized consensus of a layer 1 if they don’t actually take advantage of it. Instead that activity can be done on Midgard and settled to the Cardano mainnet when the utilization of block-space is lower thus alleviating congestion from the L1.
One of the great things about Midgard as an L2 to is that it inherits it security from the Cardano L1. Midgard is consistently providing value to Cardano because it is fully dependent on the L1 for security and consensus. To achieve this, it must consistently transaction with (and thus pay fees to) the Cardano L1 to publish checkpoints of the L2 state. So instead of reducing the network activity of the Cardano L1, Midgard simply disperses activity conducted during high-congestion periods across low-congestion periods thus facilitating a more efficient use of Cardano's L1 block-space.