fix/update bls funcs for testing

This commit is contained in:
protolambda 2019-05-15 18:37:11 +02:00
parent 51c82c5b81
commit a4e22639f3
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 15 additions and 1 deletions

View File

@ -22,4 +22,18 @@ def bls_aggregate_pubkeys(pubkeys):
if bls_active: if bls_active:
return bls.aggregate_pubkeys(pubkeys) return bls.aggregate_pubkeys(pubkeys)
else: else:
return b'\x42' * 96 return b'\xaa' * 48
def bls_aggregate_signatures(signatures):
if bls_active:
return bls.aggregate_signatures(signatures)
else:
return b'\x22' * 96
def bls_sign(message_hash, privkey, domain):
if bls_active:
return bls.sign(message_hash=message_hash, privkey=privkey, domain=domain)
else:
return b'\x11' * 96