EVM Deep Dives: The Path to Shadowy Super Coder 🥷 💻 - Part 1

✅ EVM selects functions IF and FOR

  1. Get the function calldata(CALLDATALOAD)

  2. Remove the waste data when checking the function identifier(SHR)

  3. If the checking is true ⇒ go to the destination offset(JUMPI)

                               false ⇒ checking the other function identifiers
    

Opcodes are 1 byte in length leading to 256 different possible opcodes. The EVM only uses 140 unique opcodes.

Untitled

Screen Shot 2022-05-29 at 13.56.23.png

This is the calldata of ("store(uint256)", 10)

0x6057361d000000000000000000000000000000000000000000000000000000000000000a

keccak256(“store(uint256)”) → first 4 bytes = 6057361d

Screen Shot 2022-05-31 at 10.53.21.png