EVM CREATE2 & Uniswap v4 HookMiner GPU Benchmark: Foundry CPU vs NVIDIA L4 (1.36 GH/s)
Under EIP-1014 (CREATE2), a deterministic contract address is computed as keccak256(0xff || deployer || salt || initCodeHash)[12:]. Unlike wallet vanity mining, CREATE2 requires zero elliptic-curve (secp256k1) operations and its 85-byte preimage fits entirely inside a single 136-byte Keccak-256 block — enabling massive GPU throughput.
Why Protocols & Uniswap v4 Developers Mine CREATE2 Salts
- Mandatory 14-Bit Uniswap v4 Hook Flags: Uniswap v4's
PoolManagerreads the lowest 14 bits (uint160(addr) & 0x3FFF) of every hook address to determine which of the 14 lifecycle and return-delta callbacks are enabled. - Permanent Calldata Gas Savings: Each zero byte (
0x00) in EVM calldata costs 4 gas instead of 16 gas — saving 12 gas per zero byte on every transaction. A 5-zero-byte prefix (0x0000000000...) saves 60 gas per call permanently. - Zero-Trust Security: Salt mining only requires your public
deployeraddress and 32-bytekeccak256(initCode)hash. Private keys and Solidity source code never leave your machine.
Empirical Benchmark: Foundry CPU HookMiner vs NVIDIA L4 CUDA
By aligning the 32-byte salt directly onto 64-bit little-endian Keccak state lanes (st[3] and st[4]) and folding both leading hex prefixes and Uniswap v4's 14-bit 0x3FFF mask into two register bitwise ops, our single-block CUDA kernel reaches 1,362.67 MH/s (1.36 GH/s) on a single NVIDIA L4 GPU.
| Target Constraint | Difficulty | Foundry CPU (~400 KH/s) | NVIDIA L4 CUDA (1.36 GH/s) |
|---|---|---|---|
14-bit v4 Hook + 0x0000 | 30 bits | ~45 min | ~0.8 s (1s measured) |
14-bit v4 Hook + 0x000000 | 38 bits | ~8 days | ~3.4 min |
| 10 Leading Zeros (5 zero bytes) | 40 bits | ~32 days | ~13.5 min |
14-bit v4 Hook + 0x0000000 | 42 bits | ~127 days | ~54 min |
Reproducible Verification Vector
Target: Foundry Deterministic Deployer (0x4e59b44847b379578588920cA78FbF26c0B4956C), initCodeHash = keccak256(""), prefix 0x0000, flags BEFORE_SWAP | AFTER_SWAP (0x0c00). Solved on L4 in 1 second:
- Salt:
0x0d554b0b21a05577ab7a1b5c0dbc16f58404482bef4ff4323bb08c8a0c52af51 - EIP-55 Address:
0x0000E11Ec03A91aB93444Eaa4fB07E83A0EaCc00
Verify any salt offline with our open-source CLI uniswap-v4-hook-verifier, or mine high-bit salts on demand at TRXVanity CREATE2 & Uniswap v4 HookMiner.