MCPcopy Index your code
hub / github.com/Vectorized/function-selector-miner

github.com/Vectorized/function-selector-miner @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
55 symbols 87 edges 7 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

A recent Rust compiler. Tested with rustc 1.72.0.

Running

cargo run --release <function_name> <function_params> <target_selector> [num_threads]

For example:

cargo run --release "someFunction" "(uint256,address)" "0x12345678"

Core symbols most depended-on inside this repo

rho_pi_
called by 23
src/lib.rs
iter
called by 6
src/lib.rs
theta_
called by 5
src/lib.rs
rotate_left
called by 5
src/lib.rs
chi_
called by 5
src/lib.rs
compute_selectors
called by 3
src/sponge.rs
normalizeEndianess
called by 2
cpp/main.cpp
iters
called by 2
src/lib.rs

Shape

Function 28
Method 21
Class 6

Languages

Rust71%
C++29%

Modules by API surface

cpp/main.cpp16 symbols
src/sponges_avx.rs15 symbols
src/lib.rs10 symbols
src/sponge.rs8 symbols
src/small_string.rs2 symbols
src/main.rs2 symbols
benches/avx_benchmark.rs2 symbols

For agents

$ claude mcp add function-selector-miner \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact