diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-09-26 18:19:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 18:19:12 +0800 |
commit | 9c2f700be09c27e8a8d12fc5bc0ccd017d408a32 (patch) | |
tree | bde8e80468af8535c8652210017553e2ed830d62 /core/crypto_test.go | |
parent | 0398468051068720688199442f53984b4071f4b2 (diff) | |
download | dexon-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.tar dexon-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.tar.gz dexon-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.tar.bz2 dexon-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.tar.lz dexon-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.tar.xz dexon-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.tar.zst dexon-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.zip |
core: rename crypto/eth to crypto/ecdsa (#144)
Diffstat (limited to 'core/crypto_test.go')
-rw-r--r-- | core/crypto_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/crypto_test.go b/core/crypto_test.go index 0d472cc..4c4955b 100644 --- a/core/crypto_test.go +++ b/core/crypto_test.go @@ -24,7 +24,7 @@ import ( "github.com/dexon-foundation/dexon-consensus-core/common" "github.com/dexon-foundation/dexon-consensus-core/core/crypto" "github.com/dexon-foundation/dexon-consensus-core/core/crypto/dkg" - "github.com/dexon-foundation/dexon-consensus-core/core/crypto/eth" + "github.com/dexon-foundation/dexon-consensus-core/core/crypto/ecdsa" "github.com/dexon-foundation/dexon-consensus-core/core/types" "github.com/stretchr/testify/suite" ) @@ -99,7 +99,7 @@ func (s *CryptoTestSuite) generateCompactionChain( } func (s *CryptoTestSuite) TestWitnessAckSignature() { - prv, err := eth.NewPrivateKey() + prv, err := ecdsa.NewPrivateKey() pub := prv.PublicKey() s.Require().Nil(err) blocks, witnessAcks := s.generateCompactionChain(10, prv) @@ -150,7 +150,7 @@ func (s *CryptoTestSuite) generateBlockChain( } func (s *CryptoTestSuite) TestBlockSignature() { - prv, err := eth.NewPrivateKey() + prv, err := ecdsa.NewPrivateKey() pub := prv.PublicKey() s.Require().Nil(err) blocks := s.generateBlockChain(10, prv) @@ -178,7 +178,7 @@ func (s *CryptoTestSuite) TestBlockSignature() { } func (s *CryptoTestSuite) TestVoteSignature() { - prv, err := eth.NewPrivateKey() + prv, err := ecdsa.NewPrivateKey() s.Require().Nil(err) pub := prv.PublicKey() nID := types.NewNodeID(pub) @@ -197,7 +197,7 @@ func (s *CryptoTestSuite) TestVoteSignature() { func (s *CryptoTestSuite) TestCRSSignature() { crs := common.NewRandomHash() - prv, err := eth.NewPrivateKey() + prv, err := ecdsa.NewPrivateKey() s.Require().Nil(err) pub := prv.PublicKey() nID := types.NewNodeID(pub) @@ -212,7 +212,7 @@ func (s *CryptoTestSuite) TestCRSSignature() { } func (s *CryptoTestSuite) TestDKGSignature() { - prv, err := eth.NewPrivateKey() + prv, err := ecdsa.NewPrivateKey() s.Require().Nil(err) nID := types.NewNodeID(prv.PublicKey()) prvShare := &types.DKGPrivateShare{ |