From 161c0a8bc14f779d5df8c0c84ac1c9203249cb46 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Thu, 23 Jan 2020 11:35:59 -0700 Subject: [PATCH] remove unused code from bls generator file --- tests/generators/bls/main.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/generators/bls/main.py b/tests/generators/bls/main.py index a1f5835be..cb14ec9ec 100644 --- a/tests/generators/bls/main.py +++ b/tests/generators/bls/main.py @@ -30,26 +30,10 @@ def int_to_hex(n: int, byte_length: int = None) -> str: return encode_hex(byte_value) -def int_to_bytes(n: int, byte_length: int = None) -> bytes: - byte_value = int_to_big_endian(n) - if byte_length: - byte_value = byte_value.rjust(byte_length, b'\x00') - return byte_value - - def hex_to_int(x: str) -> int: return int(x, 16) -DOMAINS = [ - b'\x00\x00\x00\x00\x00\x00\x00\x00', - b'\x00\x00\x00\x00\x00\x00\x00\x01', - b'\x01\x00\x00\x00\x00\x00\x00\x00', - b'\x80\x00\x00\x00\x00\x00\x00\x00', - b'\x01\x23\x45\x67\x89\xab\xcd\xef', - b'\xff\xff\xff\xff\xff\xff\xff\xff' -] - MESSAGES = [ bytes(b'\x00' * 32), bytes(b'\x56' * 32),