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),