nodejs-keccak256

Provides Keccak-256 implementation for JavaScript and TypeScript in Ethereum apps.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/zero3041/PREP --skill nodejs-keccak256-zero3041
Or copy as Structured Prompt for Agentâ–¼
Please help me install this Agent Skill.
Skill: nodejs-keccak256
Source: https://github.com/zero3041/PREP/tree/main/.claude/skills/skills/nodejs-keccak256
Command: npx skills add https://github.com/zero3041/PREP --skill nodejs-keccak256-zero3041

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ethers, viem, web3, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the issue of using the incorrect SHA3-256 algorithm in Node.js for Ethereum applications, which can lead to hashing bugs in selectors, signatures, storage slots, and address derivation.

Core Features & Use Cases

  • Correct Keccak-256 Implementation: Provides a correct implementation of Ethereum Keccak-256 for JavaScript and TypeScript.
  • Compatibility: Ensures compatibility with Ethereum functions, EIP-712, signatures, Merkle trees, and storage slots.
  • Use Case: Ideal for developers who need to compute Ethereum function selectors or event topics, or build EIP-712 helpers.

Quick Start

Use the nodejs-keccak256 skill to hash the Ethereum address '0x742d35Cc6634C0532925a3b8D4C9B569890FaC1c' with Keccak-256.

Frequently Asked Questions about nodejs-keccak256

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

FAQPage Schema
Why does Keccak-256 hashing fail in my JavaScript Ethereum application?â–¼

Standard Node.js often incorrectly uses the SHA3-256 algorithm instead of Ethereum's Keccak-256, causing hashing mismatches in function selectors, event topics, EIP-712 signatures, and address derivation.

How do I compute Ethereum function selectors and EIP-712 signatures in TypeScript?â–¼

To compute Ethereum function selectors and EIP-712 signatures in TypeScript, you need a correct Keccak-256 implementation that ensures compatibility with Ethereum functions, Merkle trees, and storage slots.

Do I need ethers, viem, or web3 libraries for Ethereum Keccak-256 hashing?â–¼

Yes, performing Ethereum Keccak-256 hashing in JavaScript and TypeScript requires either the ethers, viem, or web3 libraries to execute the necessary Ethereum operations and ensure proper compatibility.

What is the difference between Ethereum Keccak-256 and standard SHA3-256?â–¼

Ethereum Keccak-256 differs from standard SHA3-256 due to a padding change in the final NIST standard, making a correct Keccak-256 implementation essential for accurate Ethereum signature and selector computation.

Does this Keccak-256 implementation work for Merkle trees and storage slots?â–¼

Yes, this correct Keccak-256 implementation ensures full compatibility for computing Ethereum Merkle trees, storage slots, event topics, and EIP-712 typed data signatures in JavaScript and TypeScript.