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

Function _equals_str

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

Source from the content-addressed store, hash-verified

18
19
20def _equals_str(a, b):
21 if len(a) != len(b):
22 return False
23 result = 0
24 for x, y in zip(a, b):
25 result |= ord(x) ^ ord(y)
26 return result == 0
27
28
29def equals(a, b):

Callers 1

equalsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected