Ropsten Merge - mixHash stores PREVRANDAO (EIP-4399)

Subscribers:
1,210
Published on ● Video Link: https://www.youtube.com/watch?v=TA_MyJSexXE



Duration: 0:05
42 views
0


Solidity and assembly (Yul) storing PREVRANDAO (DIFFICULTY) inside block header parameter mixHash instead of difficulty (0 in PoS).

mixHash can be accessed using web3.py and web3.js based on a block number.

Solidity and Python in video:
https://github.com/MarcusWentz/EVM_LLL_Retesteth/tree/main/ropstenMixHash

Yul opcodes: https://docs.soliditylang.org/en/latest/yul.html#evm-dialect