Skip to content

Commit f64adc1

Browse files
committed
test: remove unused function xor_bytes
1 parent b847f49 commit f64adc1

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
@@ -20,10 +20,6 @@ def TaggedHash(tag, data):
2020
ss += data
2121
return hashlib.sha256(ss).digest()
2222

23-
def xor_bytes(b0, b1):
24-
assert len(b0) == len(b1)
25-
return bytes(x ^ y for (x, y) in zip(b0, b1))
26-
2723
def jacobi_symbol(n, k):
2824
"""Compute the Jacobi symbol of n modulo k
2925
@@ -510,7 +506,7 @@ def test_schnorr(self):
510506
if pubkey is not None:
511507
keys[privkey] = pubkey
512508
for msg in byte_arrays: # test every combination of message, signing key, verification key
513-
for sign_privkey, sign_pubkey in keys.items():
509+
for sign_privkey, _ in keys.items():
514510
sig = sign_schnorr(sign_privkey, msg)
515511
for verify_privkey, verify_pubkey in keys.items():
516512
if verify_privkey == sign_privkey:

0 commit comments

Comments
 (0)