cchecksum 0.3.2__cp39-cp39-win32.whl → 0.3.3__cp39-cp39-win32.whl

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.

Binary file
cchecksum/_checksum.pyx CHANGED
@@ -119,7 +119,7 @@ cpdef unicode to_checksum_address(value: Union[AnyAddress, str, bytes]):
119
119
  cdef const unsigned char* hashed_bytestr = hashed_bytes
120
120
 
121
121
  with nogil:
122
- hexlify_c_string_to_buffer_unsafe(hashed_bytestr, hash_buffer, 40)
122
+ hexlify_c_string_to_buffer(hashed_bytestr, hash_buffer, 40)
123
123
  populate_result_buffer(result_buffer, hex_address_bytestr, hash_buffer)
124
124
 
125
125
  # It is faster to decode a buffer with a known size ie buffer[:42]
@@ -134,7 +134,7 @@ cdef const unsigned char[:] hexlify_unsafe(const unsigned char[:] src_buffer, Py
134
134
  """Make sure your `num_bytes` is correct or ting go boom"""
135
135
  cdef unsigned char[:] result_buffer = bytearray(num_bytes * 2) # contiguous and writeable
136
136
  with nogil:
137
- hexlify_memview_to_buffer_unsafe(src_buffer, result_buffer, num_bytes)
137
+ hexlify_memview_to_buffer(src_buffer, result_buffer, num_bytes)
138
138
  return result_buffer
139
139
 
140
140
 
@@ -142,32 +142,6 @@ cdef inline void hexlify_memview_to_buffer(
142
142
  const unsigned char[:] src_buffer,
143
143
  unsigned char[:] result_buffer,
144
144
  Py_ssize_t num_bytes,
145
- ) nogil:
146
- cdef Py_ssize_t i
147
- cdef unsigned char c
148
- for i in range(num_bytes):
149
- c = src_buffer[i]
150
- result_buffer[2*i] = hexdigits[c >> 4]
151
- result_buffer[2*i+1] = hexdigits[c & 0x0F]
152
-
153
-
154
- cdef inline void hexlify_c_string_to_buffer(
155
- const unsigned char* src_buffer,
156
- unsigned char[:] result_buffer,
157
- Py_ssize_t num_bytes,
158
- ) nogil:
159
- cdef Py_ssize_t i
160
- cdef unsigned char c
161
- for i in range(num_bytes):
162
- c = src_buffer[i]
163
- result_buffer[2*i] = hexdigits[c >> 4]
164
- result_buffer[2*i+1] = hexdigits[c & 0x0F]
165
-
166
-
167
- cdef inline void hexlify_memview_to_buffer_unsafe(
168
- const unsigned char[:] src_buffer,
169
- unsigned char[:] result_buffer,
170
- Py_ssize_t num_bytes,
171
145
  ) noexcept nogil:
172
146
  cdef Py_ssize_t i
173
147
  cdef unsigned char c
@@ -177,7 +151,7 @@ cdef inline void hexlify_memview_to_buffer_unsafe(
177
151
  result_buffer[2*i+1] = hexdigits[c & 0x0F]
178
152
 
179
153
 
180
- cdef inline void hexlify_c_string_to_buffer_unsafe(
154
+ cdef inline void hexlify_c_string_to_buffer(
181
155
  const unsigned char* src_buffer,
182
156
  unsigned char[:] result_buffer,
183
157
  Py_ssize_t num_bytes,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cchecksum
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: A ~8x 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
@@ -0,0 +1,12 @@
1
+ cchecksum/__init__.py,sha256=-Kr6qCmi2w8Mzy5TGFJgZIGcxFGY19uTw4HJbkK8duE,448
2
+ cchecksum/_checksum.c,sha256=0dYzGtHo-AgHoyV_UxQyp24GvFYGLcfcTYzMsX2RWUk,1205535
3
+ cchecksum/_checksum.cp39-win32.pyd,sha256=IGsZrbgwnDtmZCLrgXTL0TbTWb-6DaYODmAj3PiByxw,124416
4
+ cchecksum/_checksum.pyi,sha256=eUGDp_H5_OOvDRL0GJRekMDSXSPxGwhPo9WKLCpIz3Q,2377
5
+ cchecksum/_checksum.pyx,sha256=B5G9Kzkrs57JsDpbOT_hdXLawoxqBUAhjjE0Q46Y-s8,15352
6
+ cchecksum/monkey_patch.py,sha256=rEGkjNKS0gLnmg9K5cB2xf9LDZgs9_M9wf8mggAq4_Q,1587
7
+ cchecksum/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ cchecksum-0.3.3.dist-info/licenses/LICENSE,sha256=fQVwsRjteeLx97IRvfK64JDaGcNv1BN4_SvhXX0Zemo,1091
9
+ cchecksum-0.3.3.dist-info/METADATA,sha256=Cc-MdhFjk8OYQWP22p-jWKxwzOnmfaH88KokpYjGmuE,1447
10
+ cchecksum-0.3.3.dist-info/WHEEL,sha256=Q3uEVTFw-CqGed7ywmQZcdvBC5FiRV941NvAhTjjkOQ,95
11
+ cchecksum-0.3.3.dist-info/top_level.txt,sha256=Qm8-fG-PzUlKgrtwwH508kIYkP63C2tRYA1qePeqAZQ,10
12
+ cchecksum-0.3.3.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- cchecksum/__init__.py,sha256=-Kr6qCmi2w8Mzy5TGFJgZIGcxFGY19uTw4HJbkK8duE,448
2
- cchecksum/_checksum.c,sha256=M58Bh7xHOtqwAjw2yiqKfShM14x2zh_nhQFLon5CF2M,1210644
3
- cchecksum/_checksum.cp39-win32.pyd,sha256=j1q52vGzXgIRnH_44jFAgE8Ltx5w4GfVSeOS8JtyhO8,124416
4
- cchecksum/_checksum.pyi,sha256=eUGDp_H5_OOvDRL0GJRekMDSXSPxGwhPo9WKLCpIz3Q,2377
5
- cchecksum/_checksum.pyx,sha256=ukYP-Klj5pnVZu015h9gZqTBwW2bfFvo0RRJMIcAfXw,16125
6
- cchecksum/monkey_patch.py,sha256=rEGkjNKS0gLnmg9K5cB2xf9LDZgs9_M9wf8mggAq4_Q,1587
7
- cchecksum/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- cchecksum-0.3.2.dist-info/licenses/LICENSE,sha256=fQVwsRjteeLx97IRvfK64JDaGcNv1BN4_SvhXX0Zemo,1091
9
- cchecksum-0.3.2.dist-info/METADATA,sha256=opNqcxAU4eiex0I4Ek3RUMagZiSjUWouZ-GMKeLXZgQ,1447
10
- cchecksum-0.3.2.dist-info/WHEEL,sha256=Q3uEVTFw-CqGed7ywmQZcdvBC5FiRV941NvAhTjjkOQ,95
11
- cchecksum-0.3.2.dist-info/top_level.txt,sha256=Qm8-fG-PzUlKgrtwwH508kIYkP63C2tRYA1qePeqAZQ,10
12
- cchecksum-0.3.2.dist-info/RECORD,,