METADATA 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Metadata-Version: 2.2
  2. Name: eth-hash
  3. Version: 0.7.1
  4. Summary: eth-hash: The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3
  5. Home-page: https://github.com/ethereum/eth-hash
  6. Author: The Ethereum Foundation
  7. Author-email: snakecharmers@ethereum.org
  8. License: MIT
  9. Keywords: ethereum
  10. Classifier: Development Status :: 3 - Alpha
  11. Classifier: Intended Audience :: Developers
  12. Classifier: License :: OSI Approved :: MIT License
  13. Classifier: Natural Language :: English
  14. Classifier: Programming Language :: Python :: 3
  15. Classifier: Programming Language :: Python :: 3.8
  16. Classifier: Programming Language :: Python :: 3.9
  17. Classifier: Programming Language :: Python :: 3.10
  18. Classifier: Programming Language :: Python :: 3.11
  19. Classifier: Programming Language :: Python :: 3.12
  20. Classifier: Programming Language :: Python :: 3.13
  21. Requires-Python: >=3.8, <4
  22. Description-Content-Type: text/markdown
  23. License-File: LICENSE
  24. Provides-Extra: dev
  25. Requires-Dist: build>=0.9.0; extra == "dev"
  26. Requires-Dist: bump_my_version>=0.19.0; extra == "dev"
  27. Requires-Dist: ipython; extra == "dev"
  28. Requires-Dist: mypy==1.10.0; extra == "dev"
  29. Requires-Dist: pre-commit>=3.4.0; extra == "dev"
  30. Requires-Dist: tox>=4.0.0; extra == "dev"
  31. Requires-Dist: twine; extra == "dev"
  32. Requires-Dist: wheel; extra == "dev"
  33. Requires-Dist: sphinx>=6.0.0; extra == "dev"
  34. Requires-Dist: sphinx-autobuild>=2021.3.14; extra == "dev"
  35. Requires-Dist: sphinx_rtd_theme>=1.0.0; extra == "dev"
  36. Requires-Dist: towncrier<25,>=24; extra == "dev"
  37. Requires-Dist: pytest>=7.0.0; extra == "dev"
  38. Requires-Dist: pytest-xdist>=2.4.0; extra == "dev"
  39. Provides-Extra: docs
  40. Requires-Dist: sphinx>=6.0.0; extra == "docs"
  41. Requires-Dist: sphinx-autobuild>=2021.3.14; extra == "docs"
  42. Requires-Dist: sphinx_rtd_theme>=1.0.0; extra == "docs"
  43. Requires-Dist: towncrier<25,>=24; extra == "docs"
  44. Provides-Extra: test
  45. Requires-Dist: pytest>=7.0.0; extra == "test"
  46. Requires-Dist: pytest-xdist>=2.4.0; extra == "test"
  47. Provides-Extra: pycryptodome
  48. Requires-Dist: pycryptodome<4,>=3.6.6; extra == "pycryptodome"
  49. Provides-Extra: pysha3
  50. Requires-Dist: pysha3<2.0.0,>=1.0.0; python_version < "3.9" and extra == "pysha3"
  51. Requires-Dist: safe-pysha3>=1.0.0; python_version >= "3.9" and extra == "pysha3"
  52. Dynamic: author
  53. Dynamic: author-email
  54. Dynamic: classifier
  55. Dynamic: description
  56. Dynamic: description-content-type
  57. Dynamic: home-page
  58. Dynamic: keywords
  59. Dynamic: license
  60. Dynamic: provides-extra
  61. Dynamic: requires-python
  62. Dynamic: summary
  63. # eth-hash
  64. [![Join the conversation on Discord](https://img.shields.io/discord/809793915578089484?color=blue&label=chat&logo=discord&logoColor=white)](https://discord.gg/GHryRvPB84)
  65. [![Build Status](https://circleci.com/gh/ethereum/eth-hash.svg?style=shield)](https://circleci.com/gh/ethereum/eth-hash)
  66. [![PyPI version](https://badge.fury.io/py/eth-hash.svg)](https://badge.fury.io/py/eth-hash)
  67. [![Python versions](https://img.shields.io/pypi/pyversions/eth-hash.svg)](https://pypi.python.org/pypi/eth-hash)
  68. [![Docs build](https://readthedocs.org/projects/eth-hash/badge/?version=latest)](https://eth-hash.readthedocs.io/en/latest/?badge=latest)
  69. The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3
  70. Note: the similarly named [pyethash](https://github.com/ethereum/ethash)
  71. has a completely different use: it generates proofs of work.
  72. This is a low-level library, intended to be used internally by other Ethereum tools.
  73. If you're looking for a convenient hashing tool, check out
  74. [`eth_utils.keccak()`](https://eth-utils.readthedocs.io/en/stable/utilities.html#keccak-bytes-int-bool-text-str-hexstr-str-bytes)
  75. which will be a little friendlier, and provide access to other helpful utilities.
  76. Read the [documentation](https://eth-hash.readthedocs.io/).
  77. [View the change log](https://eth-hash.readthedocs.io/en/latest/release_notes.html).
  78. ## Installation
  79. ```sh
  80. python -m pip install "eth-hash[pycryptodome]"
  81. ```
  82. ```py
  83. >>> from eth_hash.auto import keccak
  84. >>> keccak(b'')
  85. b"\xc5\xd2F\x01\x86\xf7#<\x92~}\xb2\xdc\xc7\x03\xc0\xe5\x00\xb6S\xca\x82';{\xfa\xd8\x04]\x85\xa4p"
  86. ```
  87. See the [docs](http://eth-hash.readthedocs.io/en/latest/quickstart.html#quickstart)
  88. for more about choosing and installing backends.