mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 16:45:01 -05:00
fix/update bls funcs for testing
This commit is contained in:
@@ -22,4 +22,18 @@ def bls_aggregate_pubkeys(pubkeys):
|
||||
if bls_active:
|
||||
return bls.aggregate_pubkeys(pubkeys)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user