Skip to content

nascent-chris/function-selector-miner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Function Selector Miner

Simple and fast Solidity function selector miner (CPU based).

Uses AVX2 instructions and multithreading to compute hashes in parallel.

Should be able to mine most selectors under a minute with a core i7-12700F.

Requirements

C++ compiler with OpenMP support.

Building

g++ main.cpp -O3 -march=native -DNDEBUG -fopenmp -o function_selector_miner

Running

./function_selector_miner <function name> <function params> <target selector>

For example:

./function_selector_miner "someFunction" "(uint256,address)" "0x12345678"

About

Solidity Function Selector Miner (AVX2 + Multithreaded)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 98.2%
  • Shell 1.8%