MCPcopy Index your code
hub / github.com/ethereum/eth-hash

github.com/ethereum/eth-hash @v0.8.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.8.0 ↗ · + Follow
69 symbols 251 edges 19 files 2 documented · 3% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

eth-hash

Join the conversation on Discord Build Status PyPI version Python versions Docs build

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

Note: the similarly named pyethash has a completely different use: it generates proofs of work.

This is a low-level library, intended to be used internally by other Ethereum tools. If you're looking for a convenient hashing tool, check out eth_utils.keccak() which will be a little friendlier, and provide access to other helpful utilities.

Read the documentation.

View the change log.

Installation

python -m pip install "eth-hash[pycryptodome]"
>>> from eth_hash.auto import keccak
>>> keccak(b'')
b"\xc5\xd2F\x01\x86\xf7#<\x92~}\xb2\xdc\xc7\x03\xc0\xe5\x00\xb6S\xca\x82';{\xfa\xd8\x04]\x85\xa4p"

See the docs for more about choosing and installing backends.

Core symbols most depended-on inside this repo

Shape

Function 35
Method 26
Class 8

Languages

Python100%

Modules by API surface

eth_hash/backends/pysha3.py8 symbols
eth_hash/backends/pycryptodome.py8 symbols
eth_hash/abc.py8 symbols
tests/core/test_import_and_version.py6 symbols
tests/backends/test_results.py6 symbols
tests/backends/pysha3/test_results.py6 symbols
tests/backends/pycryptodome/test_results.py6 symbols
eth_hash/main.py6 symbols
eth_hash/utils.py5 symbols
scripts/release/test_package.py4 symbols
eth_hash/backends/auto.py4 symbols
tests/backends/pysha3/conftest.py1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add eth-hash \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page