The documentation tools are undergoing heavy development and may introduce subtle bugs while rendering, especially in hard fork comparisons. Until this warning is removed, always double check against the original source.
    1. Frontier
    2. Homestead
    3. Dao_fork
    4. Tangerine_whistle
    5. Spurious_dragon
    6. Byzantium
    7. Constantinople
    8. Istanbul
    9. Muir_glacier
    10. Berlin
    11. London
    12. Arrow_glacier
    13. Gray_glacier
    14. Paris
    15. Shanghai
Ethereum Specification

Contents:

  • Specification
    • Ethereum
      • Ethereum Frontier Hardfork
      • Ethereum Homestead Hardfork
      • Ethereum Dao Hardfork
      • Ethereum Tangerine Whistle Hardfork
      • Ethereum Spurious Dragon Hardfork
      • Ethereum Byzantium Hardfork
      • Ethereum Constantinople Hardfork
      • Ethereum Istanbul Hardfork
      • Ethereum Muir Glacier Hardfork
      • Ethereum Berlin Hardfork
      • Ethereum London Hardfork
      • Ethereum Arrow Glacier Hardfork
      • Ethereum Gray Glacier Hardfork
      • Ethereum Paris Hardfork
      • Ethereum Shanghai Hardfork
      • Cryptographic Functions
      • Utility Functions
      • Numeric & Array Types
      • Ethash Functions
      • Exceptions
      • Fork Criteria
      • Genesis Configuration
      • Recursive Length Prefix (RLP) Encoding
      • EVM Trace

Comparisons:

  • Comparisons
    • Frontier → Homestead
      • Ethereum Specification
      • Ethereum Types
      • Ethereum FrontierHomestead Hardfork
      • State Trie
      • Hardfork Utility Functions For The Message Data-structure
      • Ethereum Virtual Machine (EVM)
      • EVM Instruction Encoding (Opcodes)
      • Ethereum Virtual Machine (EVM) System Instructions
      • Ethereum Virtual Machine (EVM) Interpreter
    • Homestead → Dao Fork
      • Dao Fork
      • Ethereum Specification
      • Ethereum HomesteadDao Hardfork
      • Ethereum Virtual Machine (EVM) Interpreter
    • Dao Fork → Tangerine Whistle
      • Dao Fork
      • Ethereum Specification
      • Ethereum DaoTangerine Whistle Hardfork
      • Ethereum Virtual Machine (EVM) Gas
      • Ethereum Virtual Machine (EVM) System Instructions
      • Ethereum Virtual Machine (EVM) Interpreter
    • Tangerine Whistle → Spurious Dragon
      • Ethereum Specification
      • Ethereum Tangerine WhistleSpurious Dragon Hardfork
      • State
      • Ethereum Virtual Machine (EVM) Gas
      • Ethereum Virtual Machine (EVM)
      • Ethereum Virtual Machine (EVM) System Instructions
      • Ethereum Virtual Machine (EVM) Interpreter
    • Spurious Dragon → Byzantium
      • Ethereum Specification
      • Ethereum Types
      • Ethereum Spurious DragonByzantium Hardfork
      • Hardfork Utility Functions For The Message Data-structure
      • Ethereum Virtual Machine (EVM) Exceptions
      • Ethereum Virtual Machine (EVM) Gas
      • Ethereum Virtual Machine (EVM)
      • Ethereum Virtual Machine (EVM) Environmental Instructions
      • EVM Instruction Encoding (Opcodes)
      • Ethereum Virtual Machine (EVM) Logging Instructions
      • Ethereum Virtual Machine (EVM) Storage Instructions
      • Ethereum Virtual Machine (EVM) System Instructions
      • Ethereum Virtual Machine (EVM) Interpreter
      • Ethereum Virtual Machine (EVM) ALT_BN128 CONTRACTS
      • Precompiled Contract Addresses
      • Precompiled Contract Addresses
      • Ethereum Virtual Machine (EVM) MODEXP PRECOMPILED CONTRACT
    • Byzantium → Constantinople
      • Ethereum Specification
      • Ethereum ByzantiumConstantinople Hardfork
      • Hardfork Utility Functions For Addresses
      • Ethereum Virtual Machine (EVM) Gas
      • Ethereum Virtual Machine (EVM) Bitwise Instructions
      • Ethereum Virtual Machine (EVM) Environmental Instructions
      • EVM Instruction Encoding (Opcodes)
      • Ethereum Virtual Machine (EVM) System Instructions
      • Ethereum Virtual Machine (EVM) Interpreter
    • Constantinople → Istanbul
      • Ethereum Specification
      • Ethereum Types
      • Ethereum ConstantinopleIstanbul Hardfork
      • State
      • Hardfork Utility Functions For Addresses
      • Ethereum Virtual Machine (EVM) Exceptions
      • Ethereum Virtual Machine (EVM) Gas
      • Ethereum Virtual Machine (EVM)
      • Ethereum Virtual Machine (EVM) Block Instructions
      • Ethereum Virtual Machine (EVM) Environmental Instructions
      • EVM Instruction Encoding (Opcodes)
      • Ethereum Virtual Machine (EVM) Storage Instructions
      • Ethereum Virtual Machine (EVM) Interpreter
      • Ethereum Virtual Machine (EVM) ALT_BN128 CONTRACTS
      • Ethereum Virtual Machine (EVM) Blake2 PRECOMPILED CONTRACT
      • Precompiled Contract Addresses
      • Precompiled Contract Addresses
    • Istanbul → Muir Glacier
      • Ethereum Specification
      • Ethereum IstanbulMuir Glacier Hardfork
      • Ethereum Virtual Machine (EVM) Interpreter
    • Muir Glacier → Berlin
      • Ethereum Specification
      • Ethereum Types
      • Ethereum Muir GlacierBerlin Hardfork
      • State Trie
      • Hardfork Utility Functions For The Message Data-structure
      • Ethereum Virtual Machine (EVM) Gas
      • Ethereum Virtual Machine (EVM)
      • Ethereum Virtual Machine (EVM) Environmental Instructions
      • Ethereum Virtual Machine (EVM) Storage Instructions
      • Ethereum Virtual Machine (EVM) System Instructions
      • Ethereum Virtual Machine (EVM) Interpreter
      • Ethereum Virtual Machine (EVM) MODEXP PRECOMPILED CONTRACT
    • Berlin → London
      • Ethereum Specification
      • Ethereum Types
      • Ethereum BerlinLondon Hardfork
      • State Trie
      • Ethereum Virtual Machine (EVM) Exceptions
      • Ethereum Virtual Machine (EVM) Gas
      • Ethereum Virtual Machine (EVM)
      • Ethereum Virtual Machine (EVM) Environmental Instructions
      • EVM Instruction Encoding (Opcodes)
      • Ethereum Virtual Machine (EVM) System Instructions
      • Ethereum Virtual Machine (EVM) Interpreter
    • London → Arrow Glacier
      • Ethereum Specification
      • Ethereum LondonArrow Glacier Hardfork
      • Ethereum Virtual Machine (EVM) Interpreter
    • Arrow Glacier → Gray Glacier
      • Ethereum Specification
      • Ethereum ArrowGray Glacier Hardfork
    • Gray Glacier → Paris
      • Ethereum Specification
      • Ethereum Types
      • Ethereum Gray GlacierParis Hardfork
      • State
      • Ethereum Virtual Machine (EVM)
      • Ethereum Virtual Machine (EVM) Block Instructions
      • EVM Instruction Encoding (Opcodes)
      • Ethereum Virtual Machine (EVM) Interpreter
    • Paris → Shanghai
      • Ethereum Specification
      • Ethereum Types
      • Ethereum ParisShanghai Hardfork
      • State
      • State Trie
      • Ethereum Virtual Machine (EVM) Gas
      • EVM Instruction Encoding (Opcodes)
      • Ethereum Virtual Machine (EVM) Stack Instructions
      • Ethereum Virtual Machine (EVM) System Instructions
Ethereum Specification
  • Specification
  • Ethereum Specification
  • Utility Functions
  • View page source

Utility Functions

Table of Contents

  • Introduction

Introduction

Utility functions used in this specification.

Submodules

  • Utility Functions For Byte Strings
  • Ensure (Assertion) Utilities
  • Utility Functions For Hexadecimal Strings
  • Utility Functions For Numeric Operations
  • Safe Arithmetic for U256 Integer Type
Previous Next

© Copyright 2021, Ethereum.

Built with Sphinx using a theme provided by Read the Docs.