cryptotrading.ink

Ethash

Ethash

Ethash is a memory-hard proof-of-work (PoW) algorithm originally designed for Ethereum. It was implemented in July 2015 with the launch of the Ethereum mainnet and remained the core consensus mechanism until Ethereum’s transition to Proof of Stake (PoS) with "The Merge" in September 2022. Ethash was created to be resistant to ASIC (Application-Specific Integrated Circuit) mining, favoring general-purpose hardware like GPUs and CPUs, and to mitigate the risks of 51% attacks by increasing the cost of mining.

Overview

Ethash differs significantly from earlier PoW algorithms like SHA-256 used by Bitcoin. While SHA-256 is relatively computationally intensive but requires little memory, Ethash incorporates a large dataset, called a "DAG" (Directed Acyclic Graph), that must be stored in the miner’s memory. This memory requirement is the key to its ASIC resistance.

The algorithm operates by hashing a block’s header along with a random number, and then using the result to access data from the DAG. This process is repeated multiple times, making the mining process memory-bound rather than compute-bound. As the block height increases, the DAG grows in size, continually increasing the memory requirement for mining. This makes it significantly more difficult and expensive to build ASICs optimized for Ethash, as the memory capacity and bandwidth required become substantial.

How Ethash Works

The core of Ethash can be broken down into the following steps:

DAG Generation: A DAG is generated for each epoch (a period of 30,000 blocks). This DAG is a large dataset that is crucial for the algorithm’s functionality. The DAG is pseudo-randomly generated from the Ethereum blockchain's difficulty. Hash Calculation: The miner takes the block header and a random nonce as input. This is then hashed using the Keccak-256 hashing algorithm. DAG Access: The output of the hash is used as an index to access data from the DAG. Multiple Rounds: Steps 2 and 3 are repeated multiple times (typically 1536 rounds) with a changing nonce. The result of each round is combined with the previous one. Verification: Other nodes in the network verify the proof-of-work by re-executing these steps and confirming that the resulting hash meets the target difficulty.

Key Components

Recommended Crypto Futures Platforms

Platform !! Futures Highlights !! Sign up
Binance Futures || Leverage up to 125x, USDⓈ-M contracts || Register now
Bybit Futures || Inverse and linear perpetuals || Start trading
BingX Futures || Copy trading and social features || Join BingX
Bitget Futures || USDT-collateralized contracts || Open account
BitMEX || Crypto derivatives platform, leverage up to 100x || BitMEX

Join our community

Subscribe to our Telegram channel @cryptofuturestrading to get analysis, free signals, and moreCategory:Proof-of-workalgorithms