Use packed encoding safely
Packed values are not self-describing. Different type and value sequences can produce identical bytes, so only hash packed data when the protocol defines an unambiguous layout.
- Array and tuple packed encoding is currently unsupported.
- Use abi_encode_packed for Uniswap V3 path segments: tokenIn + uint24 fee + tokenOut.
- Use keccak256(abi_encode_packed(...)) for Solidity-style packed hashing.
- Do not use packed encoding for normal contract calldata; use encode_function_data instead.
Local SQL