From 8f9b19e6c5f5b7e033d3a90c7e247ae8c7c70e00 Mon Sep 17 00:00:00 2001 From: Aayush Gautam Date: Thu, 22 Jun 2023 14:04:13 +0800 Subject: [PATCH] refactor: fix lint issues --- dkg/frost/testing_utils.go | 2 -- dkg/keysign/instance.go | 2 -- dkg/spectest/tests/frost/keysign/happy_flow.go | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dkg/frost/testing_utils.go b/dkg/frost/testing_utils.go index 55c706e96..6910154a5 100644 --- a/dkg/frost/testing_utils.go +++ b/dkg/frost/testing_utils.go @@ -10,8 +10,6 @@ import ( ecies "github.com/ecies/go/v2" ) -var testProtocolRound = common.Preparation - func testSignedMessage(round common.ProtocolRound, operatorID types.OperatorID) *dkg.SignedMessage { sk := testingutils.TestingKeygenKeySet().DKGOperators[operatorID].SK msg := &dkg.Message{ diff --git a/dkg/keysign/instance.go b/dkg/keysign/instance.go index 46dc26188..54c4d4595 100644 --- a/dkg/keysign/instance.go +++ b/dkg/keysign/instance.go @@ -6,7 +6,6 @@ import ( "github.com/bloxapp/ssv-spec/dkg" "github.com/bloxapp/ssv-spec/dkg/common" "github.com/bloxapp/ssv-spec/types" - "github.com/coinbase/kryptology/pkg/core/curves" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/herumi/bls-eth-go-binary/bls" @@ -14,7 +13,6 @@ import ( ) var ( - thisCurve = curves.BLS12381G1() domainType = types.PrimusTestnet sigType = types.DKGSignatureType ) diff --git a/dkg/spectest/tests/frost/keysign/happy_flow.go b/dkg/spectest/tests/frost/keysign/happy_flow.go index b399c7e3b..f6a708822 100644 --- a/dkg/spectest/tests/frost/keysign/happy_flow.go +++ b/dkg/spectest/tests/frost/keysign/happy_flow.go @@ -16,7 +16,7 @@ func HappyFlow() *tests.MsgProcessingSpecTest { storage := testingutils.NewTestingStorage() keyManager := testingutils.NewTestingKeyManager() - storage.SaveKeyGenOutput(&dkg.KeyGenOutput{ + _ = storage.SaveKeyGenOutput(&dkg.KeyGenOutput{ Share: ks.Shares[1], ValidatorPK: ks.ValidatorPK.Serialize(), Threshold: ks.Threshold,