From 4c90fab9a352de17315c965396ceb230ad13e0a9 Mon Sep 17 00:00:00 2001 From: Rolson Quadras Date: Mon, 30 Oct 2023 14:49:10 -0400 Subject: [PATCH] chore: Mathlib dep update Signed-off-by: Rolson Quadras --- bbs12381g2pub/keys_test.go | 2 +- go.mod | 4 +--- go.sum | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/bbs12381g2pub/keys_test.go b/bbs12381g2pub/keys_test.go index bb7e055..70cd099 100644 --- a/bbs12381g2pub/keys_test.go +++ b/bbs12381g2pub/keys_test.go @@ -73,7 +73,7 @@ func TestPublicKey_Marshal(t *testing.T) { pubKeyUnmarshalled, err := bbs.UnmarshalPublicKey(pubKeyBytes) require.NoError(t, err) require.NotNil(t, pubKeyUnmarshalled) - require.Equal(t, pubKey, pubKeyUnmarshalled) + require.True(t, pubKey.PointG2.Equals(pubKeyUnmarshalled.PointG2)) } func TestParseMattrKeys(t *testing.T) { diff --git a/go.mod b/go.mod index ae2c74f..b6b6b6a 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ module github.com/trustbloc/bbs-signature-go go 1.21 require ( - github.com/IBM/mathlib v0.0.3-0.20230831083617-4a731ed31b2a + github.com/IBM/mathlib v0.0.3-0.20231011094432-44ee0eb539da github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce github.com/stretchr/testify v1.8.2 golang.org/x/crypto v0.10.0 @@ -20,11 +20,9 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 // indirect github.com/kilic/bls12-381 v0.1.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/mmcloughlin/addchain v0.4.0 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/rogpeppe/go-internal v1.11.0 // indirect golang.org/x/sys v0.9.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect rsc.io/tmplfunc v0.0.3 // indirect diff --git a/go.sum b/go.sum index 26e7d3a..f83a229 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/IBM/mathlib v0.0.3-0.20230831083617-4a731ed31b2a h1:xWKqjaYWIbZ/um4ZBj6akjqlIaknSie2DsZhYLyQDq8= -github.com/IBM/mathlib v0.0.3-0.20230831083617-4a731ed31b2a/go.mod h1:k0NBSWMYVgaZ2keDuI8DSwdIEhUNhp8XnlVmm6Xwyuk= +github.com/IBM/mathlib v0.0.3-0.20231011094432-44ee0eb539da h1:qqGozq4tF6EOVnWoTgBoJGudRKKZXSAYnEtDggzTnsw= +github.com/IBM/mathlib v0.0.3-0.20231011094432-44ee0eb539da/go.mod h1:Tco9QzE3fQzjMS7nPbHDeFfydAzctStf1Pa8hsh6Hjs= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/bits-and-blooms/bitset v1.7.0 h1:YjAGVd3XmtK9ktAbX8Zg2g2PwLIMjGREZJHlV4j7NEo= github.com/bits-and-blooms/bitset v1.7.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= @@ -17,7 +17,6 @@ github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/Yj github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= github.com/consensys/gnark-crypto v0.12.1 h1:lHH39WuuFgVHONRl3J0LRBtuYdQTumFSDtJF7HpyG8M= github.com/consensys/gnark-crypto v0.12.1/go.mod h1:v2Gy7L/4ZRosZ7Ivs+9SfUDr0f5UlG+EM5t7MPHiLuY= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=