prysm-pulse/crypto/bls
minh-bq 25ebd335cb
Fix bls signature batch unit test (#12602)
We randomly observe this failure when running unit test

go test -test.v -run=^TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
=== RUN   TestSignatureBatch_AggregateBatch
=== RUN   TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
    signature_batch_test.go:643: AggregateBatch() Descriptions got = [test signature bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature], want [bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature test signature]
--- FAIL: TestSignatureBatch_AggregateBatch (0.02s)
    --- FAIL: TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages (0.02s)

The problem is that the signature sort forgets to swap the description when a
swap occurs. This commit adds the description swap when swap occurs.

Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-07-07 14:26:02 -05:00
..
blst Don't use max cover on unaggregated atts nor check subgroup of validated signatures (#12350) 2023-05-16 17:06:26 +00:00
common Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
herumi Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
bls_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
bls.go Don't use max cover on unaggregated atts nor check subgroup of validated signatures (#12350) 2023-05-16 17:06:26 +00:00
BUILD.bazel Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
constants.go Add pkg crypto (#9603) 2021-09-15 22:55:11 +00:00
error.go Add pkg crypto (#9603) 2021-09-15 22:55:11 +00:00
interface.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
signature_batch_test.go Fix bls signature batch unit test (#12602) 2023-07-07 14:26:02 -05:00
signature_batch.go Identify invalid signature within batch verification (#11582) (#11741) 2022-12-20 18:41:47 +08:00