Skip to content

Commit 5e40d95

Browse files
authored
Compute real aggregate pubkeys when BLS verification is disabled (#5489)
1 parent 2634354 commit 5e40d95

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • tests/core/pyspec/eth_consensus_specs/utils

tests/core/pyspec/eth_consensus_specs/utils/bls.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ def Sign(SK, message):
185185
return signature_point.to_compressed_bytes()
186186

187187

188-
@only_with_bls(alt_return=STUB_PUBKEY)
188+
# Pubkey aggregation must be computed even when BLS is inactive: unlike
189+
# signature verification, its result is data written into the beacon state
190+
# (e.g. `next_sync_committee.aggregate_pubkey`), which clients must be able
191+
# to reproduce regardless of the `bls_setting` in use.
189192
def AggregatePKs(pubkeys):
190193
aggregate = _aggregate_pubkey_points(pubkeys)
191194
assert aggregate is not None, f"empty or invalid pubkeys: {pubkeys!r}"

0 commit comments

Comments
 (0)