Close Menu
    Trending
    • Altseason: 3 Signals Investors Should Watch For – Analyst
    • Charles Schwab To Launch Bitcoin Trading, Directly Targeting Coinbase Users
    • Bitcoin Forms Golden Cross Again — How High Can BTC Climb?
    • Spot Bitcoin ETFs Extend Inflow Streak to $6.6B
    • Ethereum Open Interest Hits Record $50 Billion
    • Litecoin Skyrockets by Double-Digits, Bitcoin Price Stalls at $118K: Weekend Watch
    • What market patterns emerge from the laggards across these reports?
    • Litecoin Sharp Pullback: Scalping Opportunities Emerge While LTCBTC Seeks Stability
    Simon Crypto
    • Home
    • Crypto Market Trends
    • Bitcoin News
    • Crypto Mining
    • Cryptocurrency
    • Blockchain
    • More
      • Altcoins
      • Ethereum
    Simon Crypto
    Home»Ethereum»Ethereum Execution Layer Specification | Ethereum Foundation Blog
    Ethereum

    Ethereum Execution Layer Specification | Ethereum Foundation Blog

    Team_SimonCryptoBy Team_SimonCryptoDecember 14, 2024No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email


    tl;dr

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

    Introduction

    After greater than a yr in improvement, we’re happy to publicly introduce the Ethereum Execution Layer Specification (affectionately referred to as EELS.) EELS is a Python reference implementation of the core elements of an Ethereum execution consumer targeted on readability and readability. Meant 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, observe mainnet1, and is a superb place to prototype new EIPs.

    EELS gives full snapshots of the protocol at every fork—together with upcoming ones—making it a lot simpler to observe than EIPs (which solely suggest adjustments) and manufacturing shoppers (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 know the precise conduct of an EVM instruction.


    Determine 1. arcane runes describing the idea 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

    In the present day, 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 helpful 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 may be digestible to teachers, 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 Exams

    It bears repeating: EELS is simply common Python. It may be examined like another Python library! Along with the whole 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 shoppers!2

    Exhibiting Variations

    Having snapshots at every fork is nice for a sensible 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 supplied by the writer, 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 Atmosphere:
         caller: Tackle
         block_hashes: Checklist[Hash32]
         origin: Tackle
         coinbase: Tackle
         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 notice which contracts have 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)
    +
    

    Future

    We wish EELS to develop into the default option to specify Core EIPs, the primary place EIP authors go to prototype their proposals, and the very best reference for the way Ethereum works.

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



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    Traders are bullish on ETH as price begins to catch up with the tech

    July 19, 2025

    Volume 50% Higher Than BTC’s

    July 19, 2025

    Massive Ethereum Accumulation: Bit Digital Crosses 120,000 ETH With Latest Buy

    July 19, 2025

    SharpLink Gaming To Buy $5 Billion In Ethereum: Supply Shock Incoming?

    July 19, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Categories
    • Altcoins
    • Bitcoin News
    • Blockchain
    • Crypto Market Trends
    • Crypto Mining
    • Cryptocurrency
    • Ethereum
    Archives
    • July 2025
    • June 2025
    • May 2025
    • April 2025
    • March 2025
    • February 2025
    • January 2025
    • December 2024
    • November 2024
    Archives
    • July 2025
    • June 2025
    • May 2025
    • April 2025
    • March 2025
    • February 2025
    • January 2025
    • December 2024
    • November 2024
    Top Posts

    Ethereum Treasury Adoption Booms: 550,000 ETH Acquired By Corporates In A Month

    July 16, 2025

    ad

    About us

    Welcome to SimonCrypto.in, your ultimate destination for everything crypto! Whether you’re a seasoned investor, a blockchain enthusiast, or just beginning your journey into the fascinating world of cryptocurrencies, we’re here to guide you every step of the way.

    At SimonCrypto.in, we are passionate about demystifying the complex world of digital currencies and blockchain technology. Our mission is to provide insightful, accurate, and up-to-date information to empower our readers to make informed decisions in the ever-evolving crypto space.

    Top Insights

    Gav’s Ethereum ÐΞV Update II

    March 3, 2025

    Bitcoin Price Predictions for 2024 From Crypto Big Names, Hit or Miss?

    December 25, 2024

    Long-Range Attacks: The Serious Problem With Adaptive Proof of Work

    March 9, 2025
    Categories
    • Altcoins
    • Bitcoin News
    • Blockchain
    • Crypto Market Trends
    • Crypto Mining
    • Cryptocurrency
    • Ethereum
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2024 SimonCrypto All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.