aboutsummaryrefslogtreecommitdiffstats
path: root/core/crypto_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-25 09:55:59 +0800
committerGitHub <noreply@github.com>2018-10-25 09:55:59 +0800
commit9839a1c6fecbada7d1736680930c3e527f984470 (patch)
tree400c69e60c132dd5101f125eda7114e4bb098b45 /core/crypto_test.go
parent14b91441825d6b990527e947c021a5311e951c25 (diff)
downloadtangerine-consensus-9839a1c6fecbada7d1736680930c3e527f984470.tar
tangerine-consensus-9839a1c6fecbada7d1736680930c3e527f984470.tar.gz
tangerine-consensus-9839a1c6fecbada7d1736680930c3e527f984470.tar.bz2
tangerine-consensus-9839a1c6fecbada7d1736680930c3e527f984470.tar.lz
tangerine-consensus-9839a1c6fecbada7d1736680930c3e527f984470.tar.xz
tangerine-consensus-9839a1c6fecbada7d1736680930c3e527f984470.tar.zst
tangerine-consensus-9839a1c6fecbada7d1736680930c3e527f984470.zip
core: Move dkg in types to types/dkg. (#253)
Diffstat (limited to 'core/crypto_test.go')
-rw-r--r--core/crypto_test.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/crypto_test.go b/core/crypto_test.go
index c68b0c3..a248067 100644
--- a/core/crypto_test.go
+++ b/core/crypto_test.go
@@ -26,6 +26,7 @@ import (
"github.com/dexon-foundation/dexon-consensus-core/core/crypto/dkg"
"github.com/dexon-foundation/dexon-consensus-core/core/crypto/ecdsa"
"github.com/dexon-foundation/dexon-consensus-core/core/types"
+ typesDKG "github.com/dexon-foundation/dexon-consensus-core/core/types/dkg"
"github.com/stretchr/testify/suite"
)
@@ -171,7 +172,7 @@ func (s *CryptoTestSuite) TestDKGSignature() {
prv, err := ecdsa.NewPrivateKey()
s.Require().NoError(err)
nID := types.NewNodeID(prv.PublicKey())
- prvShare := &types.DKGPrivateShare{
+ prvShare := &typesDKG.PrivateShare{
ProposerID: nID,
Round: 5,
PrivateShare: *dkg.NewPrivateKey(),
@@ -188,7 +189,7 @@ func (s *CryptoTestSuite) TestDKGSignature() {
id := dkg.NewID([]byte{13})
_, pkShare := dkg.NewPrivateKeyShares(1)
- mpk := &types.DKGMasterPublicKey{
+ mpk := &typesDKG.MasterPublicKey{
ProposerID: nID,
Round: 5,
DKGID: id,
@@ -207,7 +208,7 @@ func (s *CryptoTestSuite) TestDKGSignature() {
prvShare.Round = 5
prvShare.Signature, err = prv.Sign(hashDKGPrivateShare(prvShare))
s.Require().NoError(err)
- complaint := &types.DKGComplaint{
+ complaint := &typesDKG.Complaint{
ProposerID: nID,
Round: 5,
PrivateShare: *prvShare,
@@ -239,7 +240,7 @@ func (s *CryptoTestSuite) TestDKGSignature() {
s.Require().NoError(err)
s.False(ok)
- sig := &types.DKGPartialSignature{
+ sig := &typesDKG.PartialSignature{
ProposerID: nID,
Round: 5,
PartialSignature: dkg.PartialSignature{},
@@ -254,7 +255,7 @@ func (s *CryptoTestSuite) TestDKGSignature() {
s.Require().NoError(err)
s.False(ok)
- final := &types.DKGFinalize{
+ final := &typesDKG.Finalize{
ProposerID: nID,
Round: 5,
}