
Description
nodejs-keccak256 is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It prevents a silent bug in Ethereum code written in JavaScript or TypeScript. Ethereum uses Keccak-256, but Node's crypto.createHash('sha3-256') produces NIST SHA3-256, which is a different algorithm that gives different output for the same input, and Node does not warn about it. That mismatch breaks function selectors, event topics, signatures, Merkle trees and storage-slot calculations without an error. The skill advises using a Keccak-256 implementation, such as the one in the ethers library, rather than the built-in SHA3 hash. It applies when computing function selectors or event topics, building EIP-712, signature, Merkle or storage-slot helpers, and reviewing any code that hashes Ethereum data with Node's crypto module directly. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Keccak-256 versus NIST SHA3 explained
- Covers selectors, topics and signatures
- Works with ethers Keccak-256
- Reviews direct crypto module hashing
Ratings & Reviews
No ratings yet
Be the first to rate nodejs-keccak256.
People also visit

migrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn
nodejs-keccak256 FAQ
What does the nodejs-keccak256 skill prevent?
Silent hashing mismatches, where Node's sha3-256 is used instead of Ethereum's Keccak-256 and selectors or signatures come out wrong.
Why does Node not catch it?
The two algorithms give different outputs, and Node does not warn when sha3-256 is used for Ethereum data.
What does the skill recommend instead?
A Keccak-256 function, shown with the ethers library.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill nodejs-keccak256
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best nodejs-keccak256 alternatives?
Popular alternatives to nodejs-keccak256 include vitest, migrate-to-shoehorn and setup-ts-deep-modules. See all nodejs-keccak256 alternatives









