Monday, May 12, 2025
ModernCryptoNews.com
  • Crypto
  • NFTs & Metaverse
  • DeFi
ModernCryptoNews.com
No Result
View All Result

Ethereum Execution Layer Specification | Ethereum Foundation Blog

May 7, 2024
Reading Time: 12 mins read
0
Ethereum Execution Layer Specification | Ethereum Foundation Blog


tl;dr

  • EELS is an execution layer reference implementation in Python.
  • It is updated with mainnet.
  • It fills exams, and passes current ones.
  • There’s an instance of an EIP carried out in EELS under.

Introduction

After greater than a 12 months in improvement, we’re happy to publicly introduce the Ethereum Execution Layer Specification (affectionately often known as EELS.) EELS is a Python reference implementation of the core parts of an Ethereum execution consumer targeted on readability and readability. Supposed as a non secular successor to the Yellow Paper that is extra programmer pleasant and up-to-date with post-merge forks, EELS can fill and execute state exams, comply with mainnet1, and is a good place to prototype new EIPs.

EELS supplies full snapshots of the protocol at every fork—together with upcoming ones—making it a lot simpler to comply with than EIPs (which solely suggest modifications) and manufacturing purchasers (which frequently combine a number of forks in the identical codepath.)

Historical past

Starting in 2021, as a venture of ConsenSys’ Quilt staff and the Ethereum Basis, the eth1.0-spec (because it was identified then) was impressed by the sheer frustration of getting to decipher the cryptic notation of the Yellow Paper (Figure 1) to grasp the particular conduct of an EVM instruction.

Screenshot of formulas 2, 3, and 4 from the Yellow Paper
Determine 1. arcane runes describing the premise of the blockchain paradigm

Drawing on the profitable Consensus Layer Specification, we got down to create an analogous executable specification for the execution layer.

Current

At present, EELS is consumable as a traditional Python repository and as rendered documentation. It is nonetheless a bit tough across the edges, and does not present a lot in the best way of annotations or English explanations for what varied items do, however these will include time.

It is simply Python

Hopefully a side-by-side comparability of the Yellow Paper and the equal code from EELS can present why EELS is a invaluable complement to it:

Less-than (LT) opcode

Determine 2. Much less-than (LT) EVM instruction from Yellow Paper

def less_than(evm: Evm) -> None:
    # STACK
    left = pop(evm.stack)
    proper = pop(evm.stack)

    # GAS
    charge_gas(evm, GAS_VERY_LOW)

    # OPERATION
    end result = U256(left < proper)

    push(evm.stack, end result)

    # PROGRAM COUNTER
    evm.computer += 1

Determine 3. Much less-than (LT) EVM instruction from EELS

Whereas Figure 2 could be digestible to lecturers, Figure 3 is indisputably extra pure to programmers.

This is a video walk-through of adding a simple EVM instruction if that is your type of factor.

Writing Checks

It bears repeating: EELS is simply common Python. It may be examined like some other Python library! Along with your entire ethereum/tests suite, we even have a collection of pytest exams.

With a little bit assist from execution-spec-tests, any exams written for EELS can be utilized to manufacturing purchasers!2

Displaying Variations

Having snapshots at every fork is nice for a wise contract developer popping in to see the specifics of how an EVM instruction works, however is not very useful for consumer builders themselves. For them, EELS can show the variations between forks:

Screenshot of the differences in the apply_fork function between homestead and the DAO fork

Determine 4. one distinction between homestead and the DAO fork

An Instance EIP

EIP-6780 is the primary EIP to get an EELS implementation offered by the creator, Guillaume Ballet! Let’s have a look.

Screenshot of EIP-6780's specification section

Determine 5. EIP-6768’s specification part

First, we introduce a created_contracts variable to the EVM with transaction-level scope:

 @dataclass
 class Setting:
     caller: Deal with
     block_hashes: Listing[Hash32]
     origin: Deal with
     coinbase: Deal with
     quantity: Uint
     base_fee_per_gas: Uint
     gas_limit: Uint
     gas_price: Uint
     time: U256
     prev_randao: Bytes32
     state: State
     chain_id: U64
+    created_contracts: Set[Address]

Second, we be aware which contracts had been created in every transaction:

+    evm.env.created_contracts.add(contract_address)

Lastly, we modify selfdestruct so it solely works for contracts famous in created_contracts:

-    # register account for deletion
-    evm.accounts_to_delete.add(originator)
-
+    # Solely proceed if the contract has been created in the identical tx
+    if originator in evm.env.created_contracts:
+
+        # register account for deletion
+        evm.accounts_to_delete.add(originator)
+

RELATED POSTS

Will Bitcoin ETF flows turn negative again? What’s causing market jitters

Institutions Bullish on Ethereum despite Low Demand for Spot Ether ETFs

Price Rises Above Downward Trendline And Key MA Levels

Future

We wish EELS to turn out to be the default approach to specify Core EIPs, the primary place EIP authors go to prototype their proposals, and the absolute best reference for a way Ethereum works.

Should you’re occupied with contributing or prototyping your EIP, be a part of us on the #specifications channel or seize a difficulty from our repository.



Source link

ADVERTISEMENT
Tags: BlogEthereumExecutionFoundationLayerSpecification
ShareTweetPin
wpadministrator

wpadministrator

Related Posts

Will Bitcoin ETF flows turn negative again? What’s causing market jitters
Ethereum

Will Bitcoin ETF flows turn negative again? What’s causing market jitters

September 13, 2024
Institutions Bullish on Ethereum despite Low Demand for Spot Ether ETFs
Ethereum

Institutions Bullish on Ethereum despite Low Demand for Spot Ether ETFs

September 12, 2024
Price Rises Above Downward Trendline And Key MA Levels
Ethereum

Price Rises Above Downward Trendline And Key MA Levels

September 12, 2024
Ethereum Whales Increase Supply Share, Now Control 43% Of All ETH
Ethereum

Ethereum Whales Increase Supply Share, Now Control 43% Of All ETH

September 12, 2024
Secured no. 1 | Ethereum Foundation Blog
Ethereum

Secured no. 1 | Ethereum Foundation Blog

September 12, 2024
Vitalik Buterin’s L2 strategy: A closer look at Ethereum’s future
Ethereum

Vitalik Buterin’s L2 strategy: A closer look at Ethereum’s future

September 11, 2024
Next Post
Best Meme Coins to Make You Rich Fast: Dogwifhat (WIF), Shiba Inu (SHIB), Hump Token (HUMP), and Dogecoin (DOGE)

Best Meme Coins to Make You Rich Fast: Dogwifhat (WIF), Shiba Inu (SHIB), Hump Token (HUMP), and Dogecoin (DOGE)

Highly Anticipated ‘Cardano Killer’ Altcoin that Raised $32,050,000 in Presale Starts Trading on May 21 2024—Everything You Need To Know

Highly Anticipated 'Cardano Killer' Altcoin that Raised $32,050,000 in Presale Starts Trading on May 21 2024—Everything You Need To Know

Recommended

Pro-XRP John Deaton officially launches Senate bid to replace Elizabeth Warren, campaign funded via Coinbase — TradingView News

February 22, 2024

XRP Price Holds Support – Indicators Show Risk of Downside Break

March 29, 2024
Kraken preparing for $100M funding round ahead of possible IPO: Report

Kraken preparing for $100M funding round ahead of possible IPO: Report

June 6, 2024

Popular Stories

  • What are rebase tokens, and how do they work?

    0 shares
    Share 0 Tweet 0
  • Crypto Whales Gobble Up Over $76,000,000 Worth of Ethereum-Based Altcoin in One Week, Says Analyst

    0 shares
    Share 0 Tweet 0
  • Coinbase CEO Brian Armstrong Says ‘Just Bitcoin’ the Best Option for US Crypto Strategic Reserve

    0 shares
    Share 0 Tweet 0
  • Crypto Trading Platform BitMEX Pleads Guilty To Bank Secrecy Act Violations

    0 shares
    Share 0 Tweet 0
  • Bitcoin, Ethereum, Dogecoin Edge Higher As Market Cheers Solana Spot ETF Filing: Analyst Forecasts King Crypto’s Bounce To $66K If This Condition Holds – Emeren Group (NYSE:SOL)

    0 shares
    Share 0 Tweet 0
No Result
View All Result

Recent News

XRP Network Activity Jumps 67% In 24 Hours – Big Move Ahead?

XRP Network Activity Jumps 67% In 24 Hours – Big Move Ahead?

April 23, 2025
Crypto Industry Contributed $18 Million To Trump’s Inauguration, Ripple Among The Top Donors

Crypto Industry Contributed $18 Million To Trump’s Inauguration, Ripple Among The Top Donors

April 23, 2025

Categories

  • Altcoins
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • DeFI
  • Dogecoin
  • Ethereum
  • Market & Analysis
  • NFTs
  • Regulations
  • Xrp

Follow us

Recommended

  • XRP Network Activity Jumps 67% In 24 Hours – Big Move Ahead?
  • Crypto Industry Contributed $18 Million To Trump’s Inauguration, Ripple Among The Top Donors
  • XRP Tops Weekly Crypto Inflows Despite Market Volatility – The Crypto Times
  • XRP Price Could Soar to $2.4 as Investors Eye Two Crucial Dates
  • XRP Eyes $2.35 Breakout, But $1.80 Breakdown Threatens Bearish Shift – TronWeekly

© 2023 Modern Crypto News | All Rights Reserved

No Result
View All Result
  • Crypto
  • NFTs & Metaverse
  • DeFi

© 2023 Modern Crypto News | All Rights Reserved