MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / _equals_bytes

Function _equals_bytes

src/pyelliptic/hash.py:11–17  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

9
10# For python3
11def _equals_bytes(a, b):
12 if len(a) != len(b):
13 return False
14 result = 0
15 for x, y in zip(a, b):
16 result |= x ^ y
17 return result == 0
18
19
20def _equals_str(a, b):

Callers 1

equalsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected