Cointime

Download App
iOS & Android

Reth AlphaNet

From garadigm by Georgios Konstantopoulos

Contents

Today, we are excited to open source Reth AlphaNet, an OP Stack-compatible testnet rollup aimed at maximizing Reth performance and enabling experimentation of bleeding edge Ethereum Research.

With this post, we hope to get developers excited to contribute and build on AlphaNet with experiments, performance optimizations, and push the frontier of Ethereum systems research, engineering and tooling with us.

What is Reth AlphaNet?

Reth AlphaNet is an OP Reth Rollup with the following characteristics:

  • Testnet: It’s a testnet rollup, holding no assets of real value.We may periodically reset it if we want to introduce breaking changes.We are open to either full reset or migrating some state across resets.
  • We may periodically reset it if we want to introduce breaking changes.
  • We are open to either full reset or migrating some state across resets.
  • Experimentation: It initially comes with 3 EIPs implemented and tested, which are not available in any other network at the time of writing of the post:EIP-3074: AUTH and AUTHCALL instructions (source).EIP-7212: Precompile for secp256r1 curve support (source).EIP-2537: Precompiles for BLS12-381 curve operations (source).
  • EIP-3074: AUTH and AUTHCALL instructions (source).
  • EIP-7212: Precompile for secp256r1 curve support (source).
  • EIP-2537: Precompiles for BLS12-381 curve operations (source).
  • High Performance: It will aim to break the gigagas barrier (1 gigagas per second) and confront the state growth problem head on.Reth has been benchmarked at 100-200 megagas per second on the alpha.13 version (December 4th 2023) for "live sync" (incl. sender recovery, execution, hashing, and trie), and 1-3 gigagas/s for "historical sync" (only execution) on a 16-core @ 3.1GHz, 512GB RAM machine with a fast SSD.We are on beta.5 (April 3rd 2024), and we've merged multiple optimizations since the original benchmark.We invite the community to review the benchmarks and help us with further stress testing the code.
  • Reth has been benchmarked at 100-200 megagas per second on the alpha.13 version (December 4th 2023) for "live sync" (incl. sender recovery, execution, hashing, and trie), and 1-3 gigagas/s for "historical sync" (only execution) on a 16-core @ 3.1GHz, 512GB RAM machine with a fast SSD.
  • We are on beta.5 (April 3rd 2024), and we've merged multiple optimizations since the original benchmark.
  • We invite the community to review the benchmarks and help us with further stress testing the code.

Zooming in:

  1. AlphaNet implements the OP Stack standard's Ecotone Hard fork via the Node Optimism crate.
  2. Bridging in and bridging out of the rollup will work same as stock OP Stack. The deposit and withdrawal delays will be on the lower end, optimized for developers wanting to end to end test bridge flows in wallets, block explorers, and other infrastructure.
  3. We do not have a strong view on what data availability mechanism AlphaNet should use. We will start with blobs and calldata, and will eventually explore multiplexing across multiple data availability layers based on fees. We are also looking at OP Plasma.

The whole codebase is <1500 lines of Rust code (LoC), including tests:

AlphaNet is now open sourced under the Apache/MIT permissive license, for anyone to fork, modify or launch.

What is the Reth SDK?

AlphaNet is built on top of Reth, rather than forking it.

Our original vision of Reth describes it as not just a node, but a Software Development Kit (SDK), as legos for building EVM-centric infrastructure.

Forking nodes is extremely brittle, it's harder to propagate updates across the ecosystem and rebasing large feature branches is hard. It also means lack of principle around where code changes happen.

The Reth SDK is a new paradigm for building nodes, specifically built for customization and for the rollup-centric roadmap.

AlphaNet implements traits provided by the Reth SDK's Reth node builder API, allowing extreme customization without forking the node. This relates closely to the original Erigon architecture of a node that separates concerns and allows running components like the transaction pool or the RPC as separate processes. The Reth SDK takes it even further using Rust's advanced type system and clean abstractions.

Here are some example modifications you can do on the node:

  1. Custom RPCs: Spinning up additional RPC methods and namespaces.
  2. Custom EVMs: Overriding the EVM's precompiles, instructions, and more.
  3. Custom Block Builder: Building blocks with your own orderflow or with a custom mempool.

We intend to share more information about how to use the Reth SDK (or Reth Core) in the coming months, as we drive it to feature completeness. We could not be more excited about this. For now, the examples and the NodeBuilder are the best things to look for in the codebase.

Why build AlphaNet?

We called it AlphaNet because it is “alpha” software for experimentation, but also “alpha” because it provides edge to developers that learn how to use its “developer preview” features.

AlphaNet's goals are:

  1. Enable developers to experiment with Ethereum nodes using Reth's modular architecture:AlphaNet can serve as a distribution channel for research ideas, and encourage Layer 2 experimentation.AlphaNet's node extensions were chosen for their ability to enable applications that enhance the onchain user experience, and drastically reduce cost for existing applications that improve UX.Reth exposes Revm's new EVMBuilder API (PRs) which enables developers to extend the EVM with custom opcodes, instructions, gas tokens and more.The Reth SDK will also allow swapping out key node components like the block executor, the state root algorithm, and already supports swapping out most other components like the networking stack, the block payload builder, database, and more.
  2. AlphaNet can serve as a distribution channel for research ideas, and encourage Layer 2 experimentation.
  3. AlphaNet's node extensions were chosen for their ability to enable applications that enhance the onchain user experience, and drastically reduce cost for existing applications that improve UX.
  4. Reth exposes Revm's new EVMBuilder API (PRs) which enables developers to extend the EVM with custom opcodes, instructions, gas tokens and more.
  5. The Reth SDK will also allow swapping out key node components like the block executor, the state root algorithm, and already supports swapping out most other components like the networking stack, the block payload builder, database, and more.
  6. Test Reth's performance at the extremes, to 1 gigagas per second and beyond.We hope to hit the state growth performance bottleneck, and discover ways to solve it, using research techniques already tested out on Ethereum and Base mainnet.We hope to experiment with state expiry, rent, compress & revive-style techniques using witnesses, and anything that lets us move the needle there.We will also deploy other techniques we've been talking about for a long time, such as parallel EVM (Block STM-based for live sync and by calculating the optimal schedule for historical sync), JIT/AOT EVM, alternative state root implementations & optimizations, multi-tenancy, and more. We already have proof of concepts for parallel EVM and JIT/AOT, and we're going to start pushing them forward more in the coming months.
  7. We hope to hit the state growth performance bottleneck, and discover ways to solve it, using research techniques already tested out on Ethereum and Base mainnet.
  8. We hope to experiment with state expiry, rent, compress & revive-style techniques using witnesses, and anything that lets us move the needle there.
  9. We will also deploy other techniques we've been talking about for a long time, such as parallel EVM (Block STM-based for live sync and by calculating the optimal schedule for historical sync), JIT/AOT EVM, alternative state root implementations & optimizations, multi-tenancy, and more. We already have proof of concepts for parallel EVM and JIT/AOT, and we're going to start pushing them forward more in the coming months.

What is the roadmap?

Our short-term roadmap for AlphaNet is as follows:

  1. Launch a hosted version of AlphaNet on Conduit, targeting 50 megagas/s, and eventually ramping up to 1 gigagas/s. If the nodes we run end up not being able to keep up with the sequencer due to state growth, we may possibly restart the experiment from zero, and try again.
  2. Distribute modified Foundry builds via the foundryup --alphanet command, so that any Foundry developer can access tooling for the node’s extensions.
  3. Use Rivet as an “Experimental Developer Wallet”, in order to iterate on Wallet UX for EIP-3074, BLS signatures, and native Passkey support.

We're particulary excited for EIP-3074 on AlphaNet with Foundry and Rivet, and recommend the entire ecosystem to prepare for its upcoming deployment in Ethereum L1 as of the All Core Devs meeting on April 11th 2024. If you want to work on EIP-3074 Invokers, help clean up our Foundry integration, or contribute to Rivet, please reach out.

Medium-term:

  1. We would like to try out other EIPs & RIPs like RIP7560 and EOF (already implemented in Revm). What else should we try?
  2. Push hard on the Reth performance optimizations mentioned in the "Why build AlphaNet?" section above.
  3. Push for the second OP Fault Proof implementation in Rust using Reth (FPVM choice TBD, between RISCV and MIPS), accelerating the OP Stack's Stage 2 Fault Proof roadmap.

We hope that Reth will be a fundamental building block for every Layer 2's scaling strategy.

Our long-term goal is to scale Ethereum and its L2 ecosystem together with the community. We will use AlphaNet as a feedback loop for pushing the frontier and deploying the best technology in production L1s and L2s. We invite the community to share with us what they'd like us to try out, or write code with us.

AlphaNet will be launched soon after Reth 1.0, before the end of Q2.

The Reth SDK provides very powerful abstractions for building modified performant nodes, and we think this is just the beginning. In the coming weeks we will be sharing everything we have been building with the Reth SDK. We will also share optimizations and architecture improvements for breaking through the performance and feature barriers required to reach web scale cryptocurrency.

Comments

All Comments

Recommended for you

  • Blockchain SaaS solution AfriDex completes $5 million Pre-Seed round of financing, led by Endeavor Ventures

    AfriDex, a blockchain software-as-a-service solution based in London, UK, announced the completion of a $5 million Pre-Seed round of financing with Endeavor Ventures leading the investment and African Crops Limited, Oldenburg Vineyards, and Hank Oberoi participating. AfriDex is currently focused on the agricultural market, providing comprehensive on-chain solutions to support and protect supply chain participants, utilizing blockchain technology to achieve traceability, frictionless payments, anti-fraud transactions, verified authentication, simplified tax and subsidy management. (finsmes)

  • Rugpull occurs on Ethereum with fake NOT tokens

    PeckShield has monitored that the fake token Notcoin (NOT) on Ethereum has dropped 100%. An address starting with 0xE0eB sold 1,645,040,633,338,481.95 NOT and exchanged it for 93.5 WETH (valued at $281,000 USD). Note: Rugpull tokens have the same name as legitimate tokens.

  • U.S. senators propose spending $32 billion to develop AI and build safeguards around it

    A bipartisan group of four senators led by Chuck Schumer, the leader of the majority party in the United States, has proposed that Congress spend at least $32 billion over the next three years to develop artificial intelligence (AI) and establish safeguards around it.

  • Swiss Federal Council Plans to Implement Crypto Asset Reporting Framework to Improve Tax Transparency

    The Swiss Federal Council (consisting of seven members jointly leading the Swiss government) plans to implement a Cryptocurrency Asset Reporting Framework (CARF) to increase tax transparency.On the 15th, the Federal Council issued a consultation document to investigate public opinion on joining the Automatic Exchange of Information (AEOI) to combat tax evasion and avoidance in cooperation with international tax authorities. Currently, Switzerland's joining of AEOI is scheduled for January 1, 2026. It is reported that the Organisation for Economic Co-operation and Development (OECD) established AEOI and other initiatives for the Group of Twenty (G20) countries, which later expanded to include other countries.Switzerland previously adopted the Common Reporting Standard (CRS) of the OECD in 2014, but did not include CARF regulating cryptocurrency assets and their providers.

  • Morgan Stanley disclosed that it invested nearly $270 million in Grayscale GBTC, becoming one of the largest holders

    On May 16th, Morgan Stanley disclosed in its Q1 13F filing with the SEC that it had invested $269.9 million in the Grayscale Bitcoin Trust (GBTC) to gain exposure to physical bitcoin ETFs. According to Fintel's data, this investment made it one of the largest holders of GBTC, after Susquehanna International Group (which invested $1 billion). Morgan Stanley is also one of many global systemically important banks (G-SIBs) that have disclosed investments in physical bitcoin ETFs, including Royal Bank of Canada, JPMorgan Chase, Wells Fargo, BNP Paribas, and UBS Group.

  • Coinbase Plans to Target Australia's Self-Managed Pensions Sector with New Service

    Coinbase is developing a service that will target Australia's self-managed pensions sector, according to the exchange's Asia-Pacific Managing Director John O'Loghlen. The move comes as self-managed funds in Australia have increasingly held crypto, with nearly A$1 billion ($664 million) allocated to crypto as of the latest data from the Australian Taxation Office. O'Loghlen stated that Coinbase's offering will aim to service these clients on a one-off basis and retain their business. The interest in crypto within the self-managed pensions sector may be driven by the recent momentum gained after spot-ETF approvals in the U.S. and the possibility of similar approvals in Australia this year.

  • The Hashgraph Association and QFC launch $50 million digital asset venture studio in Qatar

    The Hashgraph Association (THA) has announced a strategic partnership with the Qatar Financial Centre (QFC) to establish a $50 million digital asset venture studio called Digital Assets Venture Studio, which will support the development of decentralized finance (DeFi) solutions that comply with regulations and digital assets based on the Hedera distributed ledger technology (DLT) network. They will also invest in Web3 startups and DeFi projects supported by Hedera.

  • US lawmaker: SEC should repeal crypto accounting policy before Senate vote

    US legislator Wiley Nickel wrote a letter to Gary Gensler, Chairman of the US Securities and Exchange Commission (SEC), on May 15th, stating that the SEC should repeal the cryptocurrency accounting policy (SAB 121) before the Senate vote. Protecting investors is the mission of the US Securities and Exchange Commission, but SAB 121 does the opposite by preventing heavily regulated US banks from mass custody of digital assets. In addition, Wiley Nickel criticized the SEC for bypassing the rule-making process when issuing SAB 121, believing that the purpose of the cryptocurrency accounting policy is to clarify existing policies, not to create new ones.

  • CryptoQuant: Bitcoin demand is now in acceleration mode again after two months of decline

    On May 16th, cryptocurrency analysis company CryptoQuant stated in a report that despite a rebound in Bitcoin demand from the low point of the accumulation range, after two months of downward trend, Bitcoin demand is once again in "acceleration mode".

  • In the past 24 hours, the entire network has liquidated $159 million, and short positions have liquidated $114 million

    According to Coinglass data, there were liquidations of $159 million across the entire network in the past 24 hours, with long positions being liquidated for $44.75 million and short positions being liquidated for $114 million. Bitcoin liquidations were approximately $58.41 million and Ethereum liquidations were approximately $21.29 million.