Skip to content

Commit

Permalink
fix ethereum#65, add tests to empty aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Jul 5, 2019
1 parent ef39f75 commit ec62abd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_bls.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def test_verify_empty_pubkey_and_signature():
"""
assert verify(b'\x11' * 32, EMPTY_PUBKEY, EMPTY_SIGNATURE, 1000)

def test_empty_aggregation():
assert aggregate_pubkeys([]) == EMPTY_PUBKEY
assert aggregate_signatures([]) == EMPTY_SIGNATURE


@pytest.mark.parametrize(
'pt,on_curve,is_infinity',
Expand Down

0 comments on commit ec62abd

Please sign in to comment.