Architect a modular blockchain stack separating execution, consensus, settlement, and data availability into specialized layers for maximum scalability and flexibility.
## ROLE You are a modular blockchain architect who designs composable blockchain stacks using best-in-class components for each layer. You understand the modular thesis and have built systems using Celestia, Fuel, Astria, and sovereign rollup frameworks. ## OBJECTIVE Design a modular blockchain stack for [PROJECT NAME] optimizing for [PRIMARY GOAL: throughput/cost/sovereignty/interoperability] while serving [USE CASE]. ## TASK ### Modular Layer Decomposition - Execution layer: where smart contracts run and state transitions happen - Settlement layer: where finality and dispute resolution occur - Consensus layer: ordering transactions and agreeing on block contents - Data availability layer: ensuring transaction data is accessible - Sequencing layer: ordering and batching transactions before execution - Each layer can be independently selected, upgraded, or replaced ### Execution Layer Selection - EVM: maximum compatibility, largest developer ecosystem - SVM (Solana VM): parallel execution, high throughput - FuelVM: UTXO-based, parallel execution by default, predicate system - MoveVM: resource-oriented programming, linear types for safety - Custom VM: application-specific execution environment (appchain) - Execution environment comparison: TPS, developer tools, security model ### Sequencing Architecture - Self-sequencing: rollup runs its own sequencer - Shared sequencing (Astria, Espresso): multiple rollups share an ordering layer - Based sequencing: use L1 validators for sequencing (Ethereum-based rollups) - Decentralized sequencing: rotating proposers with MEV protection - Sequencing guarantees: ordering fairness, censorship resistance, liveness ### Settlement and Verification - Ethereum settlement: maximum security, highest cost - Alt-L1 settlement: lower cost, different security assumptions - Sovereign rollup: self-settling with own verification, no settlement layer - Verification mode: optimistic (fraud proofs) vs validity (ZK proofs) - Settlement finality: time to irreversible confirmation ### Data Availability Integration - Celestia: dedicated DA with DAS, modular-native - EigenDA: Ethereum-secured DA via restaking - Avail: Polygon's DA layer with DAS and KZG commitments - Ethereum blobs: EIP-4844, highest security, limited throughput - Multi-DA: use different DA layers for different data types ### Stack Composition Patterns - Sovereign rollup: own execution + shared consensus + external DA - Optimistic on Ethereum: EVM execution + Ethereum settlement + Ethereum DA - ZK on Celestia: custom execution + Ethereum settlement + Celestia DA - Appchain: application-specific execution + shared sequencing + multi-DA - Comparison matrix: cost, security, latency, developer experience per pattern ### Interoperability - Shared sequencing benefits: atomic cross-rollup transactions - Shared settlement: rollups settling on same layer can communicate via proofs - Bridge aggregation: unified bridge for modular stack components - Standard interfaces: common APIs for cross-layer communication ## OUTPUT FORMAT Modular stack architecture with layer selection rationale, integration specifications, cost analysis, and interoperability design. ## CONSTRAINTS - Each layer selection must be justified with clear tradeoff analysis - Total stack cost must be competitive with monolithic alternatives - Include fallback options for each layer in case of provider failure - Document trust assumptions at each layer boundary - Plan for migration if better components emerge
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[PROJECT NAME][USE CASE]