Skip to main content

eth-hash: The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eth_hash-0.8.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eth_hash-0.8.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file eth_hash-0.8.0.tar.gz.

File metadata

  • Download URL: eth_hash-0.8.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for eth_hash-0.8.0.tar.gz
Algorithm Hash digest
SHA256 b009752b620da2e9c7668014849d1f5fadbe4f138603f1871cc5d4ca706896b1
MD5 225491e58a4e0d4511d8df96695eff11
BLAKE2b-256 3cf5c67fc24f2f676aa9b7ab29679d44f113f314c817207cd4319353356f62da

See more details on using hashes here.

File details

Details for the file eth_hash-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: eth_hash-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for eth_hash-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 523718a51b369ab89866b929a5c93c52978cd866ea309192ad980dd8271f9fac
MD5 04a274bfc13684e42a8918167b4add56
BLAKE2b-256 8787b36792150ca0b28e4df683a34be15a61461ca0e349e5b5cf3ec8f694edb9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page