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/agreement_test.go | |
parent | 0398468051068720688199442f53984b4071f4b2 (diff) | |
download | tangerine-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.tar.gz tangerine-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.tar.zst tangerine-consensus-9c2f700be09c27e8a8d12fc5bc0ccd017d408a32.zip |
core: rename crypto/eth to crypto/ecdsa (#144)
Diffstat (limited to 'core/agreement_test.go')
-rw-r--r-- | core/agreement_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/agreement_test.go b/core/agreement_test.go index 7780b94..2c98181 100644 --- a/core/agreement_test.go +++ b/core/agreement_test.go @@ -22,7 +22,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/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" ) @@ -67,7 +67,7 @@ type AgreementTestSuite struct { } func (s *AgreementTestSuite) SetupTest() { - prvKey, err := eth.NewPrivateKey() + prvKey, err := ecdsa.NewPrivateKey() s.Require().Nil(err) s.ID = types.NewNodeID(prvKey.PublicKey()) s.prvKey = map[types.NodeID]crypto.PrivateKey{ @@ -88,7 +88,7 @@ func (s *AgreementTestSuite) newAgreement(numNotarySet int) *agreement { notarySet := make(types.NodeIDs, numNotarySet-1) for i := range notarySet { - prvKey, err := eth.NewPrivateKey() + prvKey, err := ecdsa.NewPrivateKey() s.Require().Nil(err) notarySet[i] = types.NewNodeID(prvKey.PublicKey()) s.prvKey[notarySet[i]] = prvKey |