eth-hash
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.
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.
Metadata
Release files for eth-hash 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eth_hash-0.8.0.tar.gz | 12.2 kB | Without provenance | Details for eth_hash-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eth_hash-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for eth_hash-0.8.0-py3-none-any.whl |
Total release size: 20.2 kB
Release files / eth_hash-0.8.0.tar.gz
| Download URL | eth_hash-0.8.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b009752b620da2e9c7668014849d1f5fadbe4f138603f1871cc5d4ca706896b1
|
|
BLAKE2b-256 checksum How to use checksums |
3cf5c67fc24f2f676aa9b7ab29679d44f113f314c817207cd4319353356f62da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / eth_hash-0.8.0-py3-none-any.whl
| Download URL | eth_hash-0.8.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
523718a51b369ab89866b929a5c93c52978cd866ea309192ad980dd8271f9fac
|
|
BLAKE2b-256 checksum How to use checksums |
8787b36792150ca0b28e4df683a34be15a61461ca0e349e5b5cf3ec8f694edb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Security for eth-hash 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.