cchecksum 0.0.6__tar.gz → 0.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cchecksum might be problematic. Click here for more details.
- {cchecksum-0.0.6/cchecksum.egg-info → cchecksum-0.0.7}/PKG-INFO +1 -1
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum/checksum.py +6 -1
- {cchecksum-0.0.6 → cchecksum-0.0.7/cchecksum.egg-info}/PKG-INFO +1 -1
- {cchecksum-0.0.6 → cchecksum-0.0.7}/.github/workflows/black.yaml +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/.github/workflows/deploy-docs.yaml +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/.github/workflows/pytest.yaml +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/.github/workflows/release.yaml +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/.gitignore +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/LICENSE +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/Makefile +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/README.md +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum/__init__.py +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum/_cchecksum.pyi +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum/_checksum.c +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum/_checksum.pyx +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum/py.typed +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum.egg-info/SOURCES.txt +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum.egg-info/dependency_links.txt +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum.egg-info/not-zip-safe +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum.egg-info/requires.txt +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/cchecksum.egg-info/top_level.txt +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/Makefile +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/alabaster.css +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/basic.css +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/custom.css +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/doctools.js +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/documentation_options.js +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/file.png +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/language_data.js +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/minus.png +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/plus.png +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/pygments.css +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/searchtools.js +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/_build/html/_static/sphinx_highlight.js +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/conf.py +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/index.rst +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/docs/make.bat +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/pyproject.toml +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/requirements.txt +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/setup.cfg +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/setup.py +0 -0
- {cchecksum-0.0.6 → cchecksum-0.0.7}/test_checksum.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cchecksum
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
4
4
|
Summary: A ~2x faster drop-in replacement for eth_utils.to_checksum_address. Raises the exact same Exceptions. Implemented in C.
|
|
5
5
|
Home-page: https://github.com/BobTheBuidler/cchecksum
|
|
6
6
|
Author: BobTheBuidler
|
|
@@ -126,7 +126,7 @@ def to_hex(
|
|
|
126
126
|
https://github.com/ethereum/wiki/wiki/JSON-RPC#hex-value-encoding
|
|
127
127
|
"""
|
|
128
128
|
if hexstr is not None:
|
|
129
|
-
return
|
|
129
|
+
return hexstr if hexstr.startswith(("0x", "0X")) else f"0x{hexstr}"
|
|
130
130
|
|
|
131
131
|
if isinstance(address_bytes, (bytes, bytearray)):
|
|
132
132
|
return encode_hex(address_bytes)
|
|
@@ -137,3 +137,8 @@ def to_hex(
|
|
|
137
137
|
raise TypeError(
|
|
138
138
|
f"Unsupported type: '{repr(type(address_bytes))}'. Must be one of: bytes or bytearray."
|
|
139
139
|
)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
# force _hasher_first_run and _preimage_first_run to execute so we can cache the new hasher
|
|
143
|
+
keccak(b"")
|
|
144
|
+
keccak = keccak.hasher
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cchecksum
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
4
4
|
Summary: A ~2x faster drop-in replacement for eth_utils.to_checksum_address. Raises the exact same Exceptions. Implemented in C.
|
|
5
5
|
Home-page: https://github.com/BobTheBuidler/cchecksum
|
|
6
6
|
Author: BobTheBuidler
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|