L2 Architecture
Minimal L1, Smart Contracts on L2
IPPAN implements a minimal L1, smart contracts on L2 architecture that keeps the base layer ultra-fast while enabling arbitrary programmability. This design maintains L1's 1-10M TPS target while adding comprehensive L2 capabilities.
Design Philosophy
Core Principles
L1 = Deterministic Core
Focus on payments, handles, DHT, and validator operations. The base layer maintains ultra-fast performance for core blockchain functions while providing settlement guarantees and exit mechanisms.
L2 = Smart Contracts
Enable arbitrary programmability via ZK rollups, optimistic rollups, and app-chains. L2s can handle unlimited smart contract complexity without affecting L1 performance.
L1 Only Verifies
Verify succinct proofs/commitments and enable exits. The base layer focuses on verification rather than execution, maintaining its speed and efficiency.
Performance First
Maintain L1's 1-10M TPS target while adding L2 capabilities. This architecture ensures scalability without compromising on core performance.
Architecture Components
Core L2 System
L2 Transaction Types
L2CommitTx
L2ExitTx
Proof Types
ZK Groth16
Zero-knowledge proofs
Optimistic
Optimistic rollups
External
External attestations
Data Availability Modes
Inline DA
Store data directly in L1 transaction
External DA
Store only hash reference on L1
Benefits
Why L2-on-Top Architecture
Scalability
L2s can handle unlimited smart contract complexity
Performance
L1 remains ultra-fast for core operations
Flexibility
Multiple proof systems and DA modes supported
Security
L1 provides settlement guarantees and exit mechanisms
Getting Started
Quick Setup Guide
Build with L2 Support
Basic L2 support:
cargo build --features crosschain
With ZK proof support:
cargo build --features "crosschain zk-groth16"
Run L2 tests:
cargo test --test l2_commit_exit