MegaETH About
01
A New State Trie
Updating the state root of MPT is one of the most critical bottle-necks in execution clients due to the large number of random disk I/Os it incurs. To address this issue, we designed a new state trie that is highly memory & I/O-efficient. It can scale to terabytes of state data smoothly without incurring additional I/O costs, even on nodes with limited RAM.
02
Write-Optimized Storage Backend
The MDBX database is commonly used in EVM execution clients, but its high write amplification and single-writer lock result in poor write performance. To accomodate our extremely high rate of state updates, we revamped the storage backend to optimize for write performance while maintaining predictable read latencies.
03
Bytecode Compilation
Interpreting EVM smart contracts incurs significant runtime overhead, resulting in performance up to 1000 times slower than native code in some cases. To address this, we utilize just-in-time (JIT) compilation to remove the interpretation overhead and bring near bare-metal performance to the most compute-intensive Dapps.
04
Two-Pronged Parallel Execution
To fully exploit parallel execution, we adopted a unique approach that employs distinct strategies for block production & validation. The sequencer can utilize any concurrency control protocol, without being limited to deterministic methods like Block-STM. Meanwhile, full nodes leverage stateless validation to execute blocks in parallel, thereby avoiding state contention and maximizing parallel speedup.
05
Efficient State Sync
We developed a custom peer-to-peer networking protocol optimized for low-latency & high-throughput state synchronization, making near-optimal use of available network bandwidth. Combined with novel compression techniques, even low-cost nodes with limited bandwidth can stay in sync with the network at 100,000 TPS. Additionally, new nodes can join the network and catch up to the latest state quickly.
06
Streaming EVM
To achieve our 1-ms block time target, we co-designed an efficient streaming block production pipeline with our parallel execution engine. This new pipeline operates asynchronously with various system components, such as the storage backend and state trie. Consequently, it can continuously process incoming transactions and emit results in real time.
CAREER

MegaLabs is seeking an Assistant General Counsel to join our legal team. The successful candidate will report to the General Counsel and work on novel legal issues while having autonomy, career growth, and leadership exposure. The ideal candidate should be passionate about crypto, intellectually curious, hard working, and a problem solver.
What you'll work on:
Core Focus: The role will focus on a wide-array of transactional matters as a trusted partner to MegaLabs' Strategy, Product, Ecosystem, and Finance teams. You will work collaboratively with internal stakeholders and have strong communication skills.
- Structure, negotiate, and draft a wide-range of fintech, SaaS, blockchain, and collaboration agreements.
- Address legal risk in business-centric ways with the goal of strengthening partnerships and advancing opportunities.
- Support the creation and expansion of contract templates and terms of use to reflect new and existing products and services.
- Assist business leaders with contract interpretation and management.
Product: Advise stakeholders on legal aspects of novel product development initiatives, including with respect to regulatory risk and terms of use.
Corporate Governance: Manage corporate governance issues for MegaLabs and collaborate with corporate stakeholders, including management and board members.
What you'll bring to MegaLabs:
- 5+ years of practical, hands-on legal experience, both law firm and in-house experience are preferred.
- Experience drafting and negotiating financial services and tech agreements.
- An understanding of blockchain ecosystems across verticals (e.g., DeFi, RWAs, tokenized assets, NFTs, gaming, payments) as well as the relevant regulatory implications.
- You are passionate about the potential of cryptocurrency and blockchains, are a team player with a sense of humor, and enjoy learning.
- Comfort operating outside of your comfort zone in a rapidly evolving, high-velocity environment, managing multiple projects simultaneously.
- You can work autonomously and independently with guidance but are also comfortable working collaboratively as part of a team.
- You have a demonstrated experience and/or strong interest in crypto/web3.
Nice to haves:
- Experience advising on novel product launches
- Experience with regulatory areas relevant to crypto, including:
- Securities law
- Money Transmission/VASP/DASP/CASP
- AML/CTF
- MiCA
- Tax

