What are the key milestones you need to achieve in order to complete your project successfully?
Milestone 1: Milestone 1: Implement Atomic Transactions Across Two Hydra Heads
-
Objective: Create a prototype demonstrating the transfer of native Cardano assets between two isolated Hydra Heads using atomic transactions.
-
Details: Atomic transactions ensure that either all operations across the two Hydra Heads succeed or none do, preventing partial failures and avoiding liquidity traps. This milestone will validate whether native assets like USDM or ADA can move seamlessly across separate L2 instances.
-
Deliverable:
- Working code showcasing atomic asset transfers.
- A technical report documenting how the solution leverages the eUTxO model for efficient atomic operations and any challenges encountered.
Milestone 2: Milestone 2: Design Smart Contract Interactions Using Cross-Ledger Framework
-
Objective: Enable smart contract execution between L2 ledgers, such as placing a bid on Midgard from a Hydra Head.
-
Details: This milestone explores cross-ledger calls where dApps on one L2 can interact with smart contracts on another. Example: a user on Hydra participates in an auction or lottery contract deployed on Midgard.
-
Deliverable:
- A demo of smart contract interactions across L2s.
- A framework for structuring cross-ledger calls, including design patterns for request-response flows and transaction finality guarantees.
Milestone 3: Milestone 3: Address Dispute Resolution and Ensure Eventual Liveness in Cross-Ledger Interactions
-
Objective: Develop a mechanism for dispute resolution to ensure the integrity and liveness of cross-ledger operations, especially under adversarial conditions.
-
Details: Midgard’s fraud proofs and Hydra’s state commitments provide the foundation for this milestone. The system will need to handle cases where one L2 attempts to withhold or delay a transaction. This step ensures that transactions remain live and disputes can be resolved in favor of honest participants.
-
Deliverable:
- Implementation of dispute mechanisms ensuring that cross-ledger operations cannot get stuck indefinitely.
- Test scenarios involving adversarial actors to validate the solution.
Milestone 4: Milestone 4: Validate Payments Across Two-Party Ledgers Using a Central Multi-Party Ledger
-
Objective: Establish a central multi-party ledger to facilitate multi-hop transactions and payments across multiple L2 instances, acting as a liquidity hub.
-
Details: The multi-party ledger will function as a payment aggregator where two or more L2s can settle transactions without requiring direct connections between each L2. This reduces the burden on users by minimizing the number of transfers they need to make between ledgers.
-
Deliverable:
- A working prototype where multiple L2s exchange assets through a central ledger.
- Report comparing the efficiency of this model against point-to-point atomic transactions and HTLC-based systems.
Milestone 5: Milestone 5: Demonstrate Payments Across Multiple L2s Using Atomic Transactions
-
Objective: Showcase payments that flow through multiple two-party ledgers without breaking atomicity.
-
Details: This milestone demonstrates multi-step, atomic payments, ensuring that even if the payment involves several L2s, it either completes fully or reverts safely. This system will leverage hydra heads and Midgard rollups, creating a blueprint for more complex multi-hop payment networks.
-
Deliverable:
- Test case demonstrating atomic transfers across three or more L2s.
- A report highlighting performance metrics, including latency and gas costs, along with recommended optimizations.
Final Milestone: Expanded Key Milestones
Milestone 1: Implement Atomic Transactions Across Two Hydra Heads
-
Objective: Create a prototype demonstrating the transfer of native Cardano assets between two isolated Hydra Heads using atomic transactions.
-
Details: Atomic transactions ensure that either all operations across the two Hydra Heads succeed or none do, preventing partial failures and avoiding liquidity traps. This milestone will validate whether native assets like USDM or ADA can move seamlessly across separate L2 instances.
-
Deliverable:
- Working code showcasing atomic asset transfers.
- A technical report documenting how the solution leverages the eUTxO model for efficient atomic operations and any challenges encountered.
Milestone 2: Design and Demonstrate Smart Contract Interactions Using Cross-Ledger Framework
-
Objective: Enable smart contract execution between distinct L2 ledgers, such as placing a bid on Midgard from a Hydra Head.
-
Details: This milestone explores cross-ledger calls where dApps on one L2 can interact with smart contracts on another. Example: a user on Hydra participates in an auction or lottery contract deployed on Midgard.
-
Deliverable:
- A demo of smart contract interactions across L2s.
- A framework for structuring cross-ledger calls, including design patterns for request-response flows and transaction finality guarantees.
Milestone 3: Address Dispute Resolution and Ensure Eventual Liveness in Cross-Ledger Interactions
-
Objective: Develop a mechanism for dispute resolution to ensure the integrity and liveness of cross-ledger operations, especially under adversarial conditions.
-
Details: Midgard’s fraud proofs and Hydra’s state commitments provide the foundation for this milestone. The system will need to handle cases where one L2 attempts to withhold or delay a transaction. This step ensures that transactions remain live and disputes can be resolved in favor of honest participants.
-
Deliverable:
- Implementation of dispute mechanisms ensuring that cross-ledger operations cannot get stuck indefinitely.
- Test scenarios involving adversarial actors to validate the solution.
Milestone 4: Validate Payments Across Two-Party Ledgers Using a Central Multi-Party Ledger
-
Objective: Establish a central multi-party ledger to facilitate multi-hop transactions and payments across multiple L2 instances, acting as a liquidity hub.
-
Details: The multi-party ledger will function as a payment aggregator where two or more L2s can settle transactions without requiring direct connections between each L2. This reduces the burden on users by minimizing the number of transfers they need to make between ledgers.
-
Deliverable:
- A working prototype where multiple L2s exchange assets through a central ledger.
- Report comparing the efficiency of this model against point-to-point atomic transactions and HTLC-based systems.
Milestone 5: Demonstrate Payments Across Multiple L2s Using Atomic Transactions
-
Objective: Showcase payments that flow through multiple two-party ledgers without breaking atomicity.
-
Details: This milestone demonstrates multi-step, atomic payments, ensuring that even if the payment involves several L2s, it either completes fully or reverts safely. This system will leverage hydra heads and Midgard rollups, creating a blueprint for more complex multi-hop payment networks.
-
Deliverable:
- Test case demonstrating atomic transfers across three or more L2s.
- A report highlighting performance metrics, including latency and gas costs, along with recommended optimizations.
Final Milestone: Smart Contract Interaction Across Ledgers – Lottery Contract Use Case
-
Objective: Demonstrate a non-trivial, real-world use case where smart contracts deployed across multiple L2s interact seamlessly, focusing on a lottery contract.
-
Details: This milestone will feature a scenario where users on Hydra participate in a lottery contract running on Midgard. Participants will lock assets on Hydra, submit entries, and receive lottery results—all through cross-ledger interaction. This will prove the feasibility of building multi-L2 dApps with smooth UX.
-
Deliverable:
- Full demonstration of a lottery contract with cross-ledger participation.
- Publicly released open-source code and a technical report outlining challenges, optimizations, and future improvements.