aboutsummaryrefslogtreecommitdiffstats
path: root/core/utils
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-04 12:15:06 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-04 12:15:06 +0800
commit0475adf7692697df91d359d67f7298574adfe327 (patch)
tree7c1dae7d4e8690ecd2b2097233bd534db0fb93ca /core/utils
parentab2d2d131cadb28a59b51dc5d1142ef8845e2f88 (diff)
downloaddexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar
dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.gz
dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.bz2
dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.lz
dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.xz
dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.zst
dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.zip
core/crypto/dkg: concurrent access for gpk (#548)
* core/crypto/dkg: add benchmark * core/crypto/dkg: concurrent access for gpk
Diffstat (limited to 'core/utils')
-rw-r--r--core/utils/crypto_test.go2
-rw-r--r--core/utils/penalty-helper_test.go2
-rw-r--r--core/utils/utils_test.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/utils/crypto_test.go b/core/utils/crypto_test.go
index 061f250..5dfd82b 100644
--- a/core/utils/crypto_test.go
+++ b/core/utils/crypto_test.go
@@ -179,7 +179,7 @@ func (s *CryptoTestSuite) TestDKGSignature() {
Round: 5,
Reset: 6,
DKGID: id,
- PublicKeyShares: *pkShare,
+ PublicKeyShares: *pkShare.Move(),
}
mpk.Signature, err = prv.Sign(hashDKGMasterPublicKey(mpk))
s.Require().NoError(err)
diff --git a/core/utils/penalty-helper_test.go b/core/utils/penalty-helper_test.go
index 7b61781..3e4f8b5 100644
--- a/core/utils/penalty-helper_test.go
+++ b/core/utils/penalty-helper_test.go
@@ -52,7 +52,7 @@ func (s *PenaltyHelperTestSuite) TestDKGComplaint() {
mpk := &typesDKG.MasterPublicKey{
ProposerID: nID1,
DKGID: typesDKG.NewID(nID1),
- PublicKeyShares: *pubShares,
+ PublicKeyShares: *pubShares.Move(),
}
mpk.Signature, err = prv1.Sign(hashDKGMasterPublicKey(mpk))
s.Require().NoError(err)
diff --git a/core/utils/utils_test.go b/core/utils/utils_test.go
index 70f6e98..c3afea9 100644
--- a/core/utils/utils_test.go
+++ b/core/utils/utils_test.go
@@ -53,7 +53,7 @@ func (s *UtilsTestSuite) TestVerifyDKGComplaint() {
mpk := &typesDKG.MasterPublicKey{
ProposerID: nID1,
DKGID: typesDKG.NewID(nID1),
- PublicKeyShares: *pubShares,
+ PublicKeyShares: *pubShares.Move(),
}
mpk.Signature, err = prv1.Sign(hashDKGMasterPublicKey(mpk))
s.Require().NoError(err)