aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-02-07 13:29:27 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-02-09 17:58:21 +0100
commitf64adc1eedff9d342b49d7e6428b2da21130c23c (patch)
tree49d3cf20a5a671d235a6c165277bfc79911ab201 /test/functional/test_framework
parentb847f49717d1505694727dc800af661737fa6cc6 (diff)
test: remove unused function xor_bytes
Diffstat (limited to 'test/functional/test_framework')
-rw-r--r--test/functional/test_framework/key.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/functional/test_framework/key.py b/test/functional/test_framework/key.py
index e0cbab45ce..26526e35fa 100644
--- a/test/functional/test_framework/key.py
+++ b/test/functional/test_framework/key.py
@@ -20,10 +20,6 @@ def TaggedHash(tag, data):
ss += data
return hashlib.sha256(ss).digest()
-def xor_bytes(b0, b1):
- assert len(b0) == len(b1)
- return bytes(x ^ y for (x, y) in zip(b0, b1))
-
def jacobi_symbol(n, k):
"""Compute the Jacobi symbol of n modulo k
@@ -510,7 +506,7 @@ class TestFrameworkKey(unittest.TestCase):
if pubkey is not None:
keys[privkey] = pubkey
for msg in byte_arrays: # test every combination of message, signing key, verification key
- for sign_privkey, sign_pubkey in keys.items():
+ for sign_privkey, _ in keys.items():
sig = sign_schnorr(sign_privkey, msg)
for verify_privkey, verify_pubkey in keys.items():
if verify_privkey == sign_privkey: