nodejs-keccak256

Correct Ethereum data hashing to Keccak-256 in JavaScript and TypeScript.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/klu-dev/porting-ecc-to-vscode --skill nodejs-keccak256-klu-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nodejs-keccak256
Source: https://github.com/klu-dev/porting-ecc-to-vscode/tree/main/.github/skills/nodejs-keccak256
Command: npx skills add https://github.com/klu-dev/porting-ecc-to-vscode --skill nodejs-keccak256-klu-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents Ethereum hashing bugs caused by using Node's sha3-256, which is NIST SHA3 and not Ethereum Keccak-256.

Core Features & Use Cases

  • Keccak-256 Support: Correctly hashes Ethereum data, avoiding selectors, signatures, and storage slots issues.
  • Compatibility: Integrates with JavaScript and TypeScript, ensuring correct computation for Ethereum-related operations.
  • Use Case: Use this skill in Ethereum dApps and smart contracts where data hashing is critical to maintain security and correctness.

Quick Start

Calculate the Keccak-256 hash of 'hello' with this skill.

Frequently Asked Questions about nodejs-keccak256

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does Node.js sha3-256 produce incorrect Ethereum hashes?

Node.js sha3-256 implements NIST SHA3, which differs from Ethereum Keccak-256. Using NIST SHA3 causes incorrect data hashing, leading to broken selectors, signatures, and storage slots in Ethereum dApps.

How do I calculate Keccak-256 hashes in a TypeScript project?

You can calculate Keccak-256 hashes in TypeScript by using a skill designed to correct Ethereum data hashing, ensuring compatibility and secure computation for smart contracts and dApps.

What is the difference between NIST SHA3 and Keccak-256 for Ethereum development?

NIST SHA3 is a standardized hashing algorithm, whereas Keccak-256 is the specific hash function required by Ethereum. Substituting NIST SHA3 for Keccak-256 compromises security and breaks Ethereum-related operations.

Can I use this Keccak-256 hashing solution with JavaScript and TypeScript environments?

Yes, this solution integrates with both JavaScript and TypeScript environments, ensuring correct Keccak-256 computation for Ethereum data hashing where maintaining security and correctness is critical.

When do I need to use Keccak-256 instead of standard SHA3 in my dApp?

You need Keccak-256 when computing Ethereum data hashes for dApps and smart contracts to avoid incorrect selectors, signatures, and storage slots caused by mistakenly using standard SHA3.