What problem does it solve?
Node.js's default crypto.createHash('sha3-256') uses the NIST-standardized SHA3 variant, not Ethereum's Keccak-256 algorithm. This silent mismatch causes critical bugs in Ethereum-related functionality including function selectors, event topics, digital signatures, storage slot calculations, and address derivation, leading to broken dApps and failed transactions with no warning from Node.
Core Features & Use Cases
- Provides clear guidance to avoid incorrect NIST SHA3 usage in JavaScript and TypeScript Ethereum development workflows
- Includes implementation examples for popular libraries including ethers, viem, and web3.js
- Offers audit commands to quickly scan codebases for problematic
sha3-256 crypto usage
- Use Case: A developer building an EIP-712 signing helper can use this skill to ensure their hash outputs match Ethereum's expected Keccak-256 values, preventing invalid signatures.
Quick Start
Use the nodejs-keccak256 skill to audit your JavaScript or TypeScript codebase for incorrect Node crypto sha3-256 usage and replace it with Ethereum-compatible Keccak-256 helpers.