From 9078f6688acc824b989e975b125ab633c14ef902 Mon Sep 17 00:00:00 2001 From: lauener Date: Fri, 16 Aug 2024 15:16:03 +0200 Subject: [PATCH] Get rid of out of date tests --- pairing/bn256/bls_test.go | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/pairing/bn256/bls_test.go b/pairing/bn256/bls_test.go index 83d9d8826..75b542cc2 100644 --- a/pairing/bn256/bls_test.go +++ b/pairing/bn256/bls_test.go @@ -3,10 +3,8 @@ package bn256 import ( "testing" - "github.com/stretchr/testify/require" "go.dedis.ch/kyber/v4/internal/test" "go.dedis.ch/kyber/v4/sign/bls" - "go.dedis.ch/kyber/v4/util/random" ) func TestBLSSchemeBN256G1(t *testing.T) { @@ -14,29 +12,3 @@ func TestBLSSchemeBN256G1(t *testing.T) { s := bls.NewSchemeOnG1(suite) test.SchemeTesting(t, s) } - -func TestBinaryMarshalAfterAggregation_issue400(t *testing.T) { - suite := NewSuite() - s := bls.NewSchemeOnG1(suite) - _, public1 := s.NewKeyPair(random.New()) - _, public2 := s.NewKeyPair(random.New()) - - workingKey := s.AggregatePublicKeys(public1, public2, public1) - - workingBits, err := workingKey.MarshalBinary() - require.Nil(t, err) - - workingPoint := suite.G2().Point() - err = workingPoint.UnmarshalBinary(workingBits) - require.Nil(t, err) - - // this was failing before the fix - aggregatedKey := s.AggregatePublicKeys(public1, public1, public2) - - bits, err := aggregatedKey.MarshalBinary() - require.Nil(t, err) - - point := suite.G2().Point() - err = point.UnmarshalBinary(bits) - require.Nil(t, err) -}