Skip to content

Commit 9aeef44

Browse files
kwvgPastaPastaPasta
authored andcommitted
merge bitcoin#21100: remove unused function xor_bytes
1 parent 663b3c7 commit 9aeef44

File tree

1 file changed

+1
-5
lines changed
  • test/functional/test_framework

1 file changed

+1
-5
lines changed

test/functional/test_framework/key.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ def TaggedHash(tag, data):
1919
ss += data
2020
return hashlib.sha256(ss).digest()
2121

22-
def xor_bytes(b0, b1):
23-
assert len(b0) == len(b1)
24-
return bytes(x ^ y for (x, y) in zip(b0, b1))
25-
2622
def jacobi_symbol(n, k):
2723
"""Compute the Jacobi symbol of n modulo k
2824
@@ -522,7 +518,7 @@ def test_schnorr(self):
522518
if pubkey is not None:
523519
keys[privkey] = pubkey
524520
for msg in byte_arrays: # test every combination of message, signing key, verification key
525-
for sign_privkey, sign_pubkey in keys.items():
521+
for sign_privkey, _ in keys.items():
526522
sig = sign_schnorr(sign_privkey, msg)
527523
for verify_privkey, verify_pubkey in keys.items():
528524
if verify_privkey == sign_privkey:

0 commit comments

Comments
 (0)