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.7.1.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.7.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for eth_hash-0.7.1.tar.gz
Algorithm Hash digest
SHA256 d2411a403a0b0a62e8247b4117932d900ffb4c8c64b15f92620547ca5ce46be5
MD5 ea81c2690fc432ca346dce2aa182a341
BLAKE2b-256 ee38577b7bc9380ef9dff0f1dffefe0c9a1ded2385e7a06c306fd95afb6f9451

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eth_hash-0.7.1-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.12.8

File hashes

Hashes for eth_hash-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fb1add2adf99ef28883fd6228eb447ef519ea72933535ad1a0b28c6f65f868a
MD5 8062d187cce02a3972202feb4867a282
BLAKE2b-256 ebdbf8775490669d28aca24871c67dd56b3e72105cb3bcae9a4ec65dd70859b3

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