Skip to content

Commit

Permalink
Get rid of out of date tests
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Aug 16, 2024
1 parent 7b6cf27 commit 9078f66
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions pairing/bn256/bls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,12 @@ 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) {
suite := NewSuite()
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)
}

0 comments on commit 9078f66

Please sign in to comment.