EVM Deep Dives: The Path to Shadowy Super Coder 🥷 💻 - Part 1
Get the function calldata(CALLDATALOAD)
Remove the waste data when checking the function identifier(SHR)
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.
This is the calldata of ("store(uint256)", 10)
0x6057361d000000000000000000000000000000000000000000000000000000000000000a
keccak256(“store(uint256)”) → first 4 bytes = 6057361d