Skip to content

CUDA based Solidity function selector miner, with batch mining support

Notifications You must be signed in to change notification settings

ygtdmn/function-selector-miner-cuda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Function Selector Miner

Solidity function selector miner (CUDA based).

Fork of Vectorized's function-selector-miner, rewritten in CUDA.

Optimized for RTX 4090.

Requirements

CUDA Toolkit installed.

Building

Adjust variables in selector_miner.cu for your GPU:

#define THREADS_PER_BLOCK 256
#define BLOCKS_PER_GRID 38912  // Optimized for RTX 4090 Mobile

Adjust architecture in Makefile for your GPU (default is sm_89 for RTX 4090):

CUDA_ARCH = -arch=sm_89

Common architectures: sm_75 (RTX 20xx), sm_86 (RTX 30xx), sm_89 (RTX 40xx).

Then:

make

Running

Single mode:

./selector_miner_cuda <function_name> <function_params> <target_selector>

For example:

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

Batch mode:

./selector_miner_cuda --batch <selectors_file>

File format (one selector per line):

0x12345678
0xabcdef01
0x00000000

Batch mode uses default function name f and params ().

Credits

About

CUDA based Solidity function selector miner, with batch mining support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published