From ec62abd75bf01f67c21e5b1ca743aa21762eea49 Mon Sep 17 00:00:00 2001 From: Chih Cheng Liang Date: Fri, 5 Jul 2019 15:01:35 +0800 Subject: [PATCH] fix #65, add tests to empty aggregation --- tests/test_bls.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_bls.py b/tests/test_bls.py index e444c52a..cfe5d1fe 100644 --- a/tests/test_bls.py +++ b/tests/test_bls.py @@ -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',