1 results for tag "nodejs-keccak256"
Prevent Ethereum hashing bugs in JS/TS by never using Node's `crypto.createHash('sha3-256')` (which is NIST SHA3, not Ethereum Keccak-256) and using Keccak-aware helpers from `ethers`, `viem`, or `web3` instead β selectors, EIP-712 typeHash, storage-slot math, address derivation. Includes copy-paste patterns for ethers v6 (`id`, `solidityPackedKeccak256`), viem, web3.js, and a `grep` snippet for auditing existing code.