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/test | |
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/test')
-rw-r--r-- | core/test/blocks-generator.go | 4 | ||||
-rw-r--r-- | core/test/governance.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/test/blocks-generator.go b/core/test/blocks-generator.go index eacc436..904ee7a 100644 --- a/core/test/blocks-generator.go +++ b/core/test/blocks-generator.go @@ -26,7 +26,7 @@ import ( "github.com/dexon-foundation/dexon-consensus-core/common" "github.com/dexon-foundation/dexon-consensus-core/core/blockdb" "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" ) @@ -276,7 +276,7 @@ func (gen *BlocksGenerator) Generate( } nodePrvKeys = map[types.NodeID]crypto.PrivateKey{} for i := uint32(0); i < chainNum; i++ { - if prvKey, err = eth.NewPrivateKey(); err != nil { + if prvKey, err = ecdsa.NewPrivateKey(); err != nil { return } id := types.NewNodeID(prvKey.PublicKey()) diff --git a/core/test/governance.go b/core/test/governance.go index 81b71e5..7eca6f6 100644 --- a/core/test/governance.go +++ b/core/test/governance.go @@ -23,7 +23,7 @@ import ( "time" "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" ) @@ -58,7 +58,7 @@ func NewGovernance(nodeCount int, lambda time.Duration) ( DKGMasterPublicKey: make(map[uint64][]*types.DKGMasterPublicKey), } for i := 0; i < nodeCount; i++ { - prv, err := eth.NewPrivateKey() + prv, err := ecdsa.NewPrivateKey() if err != nil { return nil, err } |