Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Mining Uniswap v4 Hook Addresses at 1.36 GH/s with Single-Block CUDA Keccak-256 (vs Foundry HookMiner)

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... )…

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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Designing a First-Contact Home Care Form With Fewer Fields

A family calling a home care agency can open with a ZIP code, a daily routine and a preferred time. A web form can gather those same details before the agency discusses service scope or availability.

  • Streamlined web form collects ZIP code, routine, and time window
  • "Not sure" and "Flexible" options allow callers without exact details
  • JavaScript function validates input, returns structured record or null

Find Missing Shots in Your Short Drama With Python

You have six shots on the list for the end of an episode. There is a wide shot of the café, a close-up of the lead and several shots of a parcel on the counter.

  • Python script verifies story beats covered by shots
  • Beat "Tessa recognizes sender on label" missing
  • Adding shot E02-S03 resolves missing beat

GTM Tags Firing Before Consent? How to Test Your Store in 15 Seconds & Fix It

If you run a Shopify, WooCommerce, Magento 2, or custom storefront with a cookie banner, there is a surprisingly common technical gap worth checking today: your banner may appear on screen while…

  • GTM tags may fire before cookie consent banner is accepted
  • Pre-consent blocker intercepts dynamic script tags to comply with consent
  • Add simple code to head section to implement pre-consent blocker

A game where you play the tide, and the whole city comes back from a nine-character string

A game where you play the tide, and the whole city comes back from a nine-character string I built a small browser game called NULL TIDE.

  • NULL TIDE is a browser game where players control the tide to shape a city.
  • The game's seed system generates city layout, objects, and ending from a nine-character string.
  • Players can share the same city and outcome by using the seed from the share card.

More from Wednesday 25 November →