elogic360/software-factory/nodejs-keccak256
Claude Code and agent skill by elogic360/software-factory
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
防止 JavaScript 和 TypeScript 中的以太坊哈希错误。Node 的 sha3-256 是 NIST SHA3,而非以太坊 Keccak-256,会静默破坏选择器、签名、存储槽和地址推导。
Install
npx vskill@latest install elogic360/software-factory/nodejs-keccak256SKILL.md
The same SKILL.md was published earlier as elogic360/software-factory/nodejs-keccak256.
Node.js Keccak-256
以太坊使用 Keccak-256,而非 Node 的 crypto.createHash('sha3-256') 所暴露的 NIST 标准化 SHA3 变体。
何时使用
- 计算以太坊函数选择器或事件主题
- 在 JS/TS 中构建 EIP-712、签名、Merkle 或存储槽辅助函数
- 审查任何直接使用 Node crypto 对以太坊数据进行哈希的代码
工作原理
两种算法对相同输入会产生不同输出,且 Node 不会发出警告。
示例
ethers v6
viem
web3.js
常见模式
从公钥生成地址
审计你的代码库
规则
在以太坊上下文中,切勿使用 crypto.createHash('sha3-256')。应使用来自 ethers、viem、web3 或其他明确 Keccak 实现的 Keccak 感知辅助函数。
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingintegrations/ecc/docs/zh-CN/skills/nodejs-keccak256/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/elogic360/software-factory/nodejs-keccak256)