{
  "id": 21728455,
  "title": "Mining Uniswap v4 Hook Addresses at 1.36 GH/s with Single-Block CUDA Keccak-256 (vs Foundry HookMiner)",
  "url": "https://urgent.news/2026/11/25/mining-uniswap-v4-hook-addresses-at-1-36-gh-s-with-single-block-cuda",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-25T03:16:49.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/_b1ec585f6b965c31af/mining-uniswap-v4-hook-addresses-at-136-ghs-with-single-block-cuda-keccak-256-vs-foundry-3e1b"
  },
  "original_language": "en",
  "account": "Uniswap v4 hook permissions are encoded in the lowest 14 bits of the contract's address. Finding a valid 14-bit salt is relatively quick on a CPU, but adding leading zero bytes increases search complexity significantly. A CUDA Keccak-256 kernel was developed to mine hook addresses at 1.36 GH/s on a single NVIDIA L4 GPU, which is about 3,400 times faster than Foundry's CPU. This approach uses zero elliptic-curve math like CREATE2, making the process significantly faster. The NVIDIA L4 GPU achieves 1.36 GH/s in hashing, capable of finding a 14-bit v4 hook with 4 leading zeros in just over a minute. Similarly, the same GPU can find a 14-bit v4 hook with 7 leading zeros in approximately 54 minutes. The findings are verified using a zero-dependency Python verifier CLI. An online browser verifier tool is also available for testing hook flags directly.",
  "summary": "In Uniswap v4 , hook permissions ( BEFORE_SWAP , AFTER_SWAP , BEFORE_ADD_LIQUIDITY , return-delta flags, etc.) are encoded directly into the lowest 14 bits ( uint160(addr) & 0x3FFF ) of the hook contract's 20-byte address. Finding a valid 14-bit salt alone only takes ~16,384 hashes (~40ms in Foundry's CPU HookMiner ). However, if you also want leading zero bytes ( 0x000000... or 0x0000000000... )…",
  "key_points": [
    "Uniswap v4 hook addresses encoded in lowest 14 bits of contract address",
    "CUDA Keccak-256 kernel developed for mining hook addresses at 1.36 GH/s",
    "NVIDIA L4 GPU finds 14-bit v4 hook with 4 leading zeros in under a minute"
  ],
  "editors_take": "The transition from CPU-based mining to high-speed GPU kernels drastically lowers the barrier for developers to secure specific Uniswap v4 hook permissions through rapid salt searching.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}