Crate evm_hound

Source
Expand description

§EVM Hound

A Minimalistic Rust library to extract all potential function selectors from EVM bytecode without source code.

For examples and more check out the github repo.

§Use cases:

Made for Hackers.tools Trading Simulator to search/bruteforce for potential methods that start trading.

Structs§

Instruction
Bytecode Instruction

Enums§

ContractType
Available contract types to detect based on ERC interfaces. Types will be added as needed (You are welcome to make a PR).
Opcode
EVM Opcodes References https://evm.codes

Functions§

contract_type_from_selectors
Detects Contract Type (ERC20, ERC721, or ANY) using selectors extracted from bytecode
disasm
Returns parsed bytecode instructions
selectors_from_bytecode
Returns all potential function selectors from the contract deployed bytecode as [u8; 4];
string_selectors_from_bytecode
Returns all potential function selectors from the contract deployed bytecode as hex 0xa9059cbb String

Type Aliases§

Bytecode
Bytecode as parsed Instructions from raw bytes
Selector
Selector alias as 4 raw bytes (bytes4 in Solidity)