Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
20
def
_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
29
def
equals(a, b):
Callers
1
equals
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected