Understanding Rollups: Optimistic vs ZK
📖 Scenario: You are learning about blockchain scaling solutions called rollups. Rollups help process many transactions off the main blockchain to make it faster and cheaper. There are two main types: Optimistic Rollups and Zero-Knowledge (ZK) Rollups.In this project, you will create a simple program to compare how many transactions each rollup type can handle and decide which one is better for a given situation.
🎯 Goal: Build a Python program that stores transaction data for Optimistic and ZK rollups, sets a minimum transaction threshold, filters rollups that meet this threshold, and prints the filtered results.
📋 What You'll Learn
Create a dictionary with exact rollup names and their transaction speeds
Add a threshold variable to filter rollups
Use a dictionary comprehension to select rollups meeting the threshold
Print the filtered rollups clearly
💡 Why This Matters
🌍 Real World
Rollups are important in blockchain to speed up transactions and reduce costs. Understanding how to compare their speeds helps developers choose the right solution.
💼 Career
Blockchain developers and engineers often analyze rollup performance to optimize decentralized applications and improve user experience.
Progress0 / 4 steps