remove unused code from bls generator file

This commit is contained in:
Danny Ryan 2020-01-23 11:35:59 -07:00
parent ec00f6d9ea
commit 161c0a8bc1
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 0 additions and 16 deletions

View File

@ -30,26 +30,10 @@ def int_to_hex(n: int, byte_length: int = None) -> str:
return encode_hex(byte_value) 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: def hex_to_int(x: str) -> int:
return int(x, 16) 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 = [ MESSAGES = [
bytes(b'\x00' * 32), bytes(b'\x00' * 32),
bytes(b'\x56' * 32), bytes(b'\x56' * 32),