On Decoding Raw EVM Calldata

Submit
jbecker.dev

On Decoding Raw EVM Calldata

AI summary of the linked article

Heimdall-rs 0.7.0 can decode raw EVM calldata into its constituent types without a contract ABI or function signature, though the method may still be ambiguous when identifying types. It splits calldata into 32-byte words and uses ABI encoding rules to identify dynamic types, requiring offset pointers to be positive multiples of 32 that point to valid words. For static words, it applies padding heuristics: right-padded words are likely bytesN or strings, left-padded words with 00 padding are likely uintN, left-padded words with ff padding are likely intN, and unpadded words are likely bytes32.

No comments yetWhat caught your eye? Start the discussion.