ethereum/eth-hash

The Ethereum hashing function, keccak256, sometimes (erroneously) called sha256 or sha3

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 1 minute ago
Added to GitGenius on June 25th, 2026
Created on February 6th, 2018
Open Issues & Pull Requests: 4 (+0)
Number of forks: 73
Total Stargazers: 110 (+0)
Total Subscribers: 12 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 8.3 hours
Mean response time: 16.0 hours
90th percentile: 38.8 hours
Tracked items: 3

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 2
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 388 days
Stale 30+ days: 2
Stale 90+ days: 2

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

The eth-hash repository provides a Python implementation of the Ethereum hashing function, specifically keccak256, which is sometimes incorrectly referred to as sha256 or sha3. This low-level library serves as a foundational cryptographic tool within the Ethereum ecosystem, designed primarily for internal use by other Ethereum development tools rather than as a user-facing application.

The repository explicitly distinguishes itself from the similarly named pyethash project, which serves an entirely different purpose by generating proofs of work for Ethereum mining. The eth-hash library focuses specifically on the hashing function itself, making it a specialized cryptographic utility. The documentation notes that users seeking a more convenient hashing interface should consider eth_utils.keccak(), which provides a friendlier API and access to additional helpful utilities beyond basic hashing functionality.

These classifications reflect the library's role as a critical security component in blockchain infrastructure.

This contributor activity pattern suggests a focused team maintaining the library. These connections indicate that eth-hash serves as a foundational dependency for multiple significant Ethereum development frameworks and libraries.

The library provides flexible backend support for the hashing implementation, with installation documentation directing users to choose and install appropriate backends according to their specific needs. This modular approach allows different projects to select hashing backends that best suit their performance and compatibility requirements. The repository maintains comprehensive documentation including a quickstart guide and detailed release notes, supporting developers in understanding both basic usage and version-specific changes.

As a cryptographic library operating at a low level within the Ethereum technology stack, eth-hash plays a crucial role in ensuring consistent hashing behavior across Ethereum tools and applications. Its position as a dependency for major projects like OpenZeppelin contracts and Foundry demonstrates its importance in the security infrastructure of Ethereum development. The library's focused scope on providing reliable keccak256 hashing without additional utilities makes it suitable for integration into other tools that build higher-level abstractions on top of this fundamental cryptographic operation.