Cover image
Blog iconChaosSR
Dec 26

Hook Address : How to Generate Addresses with Specific Bit Patterns

What if I told you that a smart contract's address isn't random?When you deploy a smart contract, you might think the resulting address that 42 character hexadecimal string starting with "0x" is just a random identifier. But what if that address itself could encode information? What if the last few digits could tell you exactly what the contract is allowed to do, without ever reading from storage? This is exactly how Uniswap v4 hooks work. Instead of storing hook permissions in storage, they ...

Most popular by ChaosSR

Cover image

Uniswap V4 entrance for devs and auditor

Cover image

Auditing Move Contracts: A Comprehensive Guide

Cover image

Hook Address : How to Generate Addresses with Specific Bit Patterns

ChaosSR

Written by
fethallahbenmokhtar

| Move/Rust & Solidity Developer | security Researcher

Subscribe

2025 Paragraph Technologies Inc

PopularTrendingPrivacyTermsHome
Search...Ctrl+K

ChaosSR

Subscribe