diff --git a/accounts/external/backend.go b/accounts/external/backend.go index 8f53204f1c..35b9c276d1 100644 --- a/accounts/external/backend.go +++ b/accounts/external/backend.go @@ -18,7 +18,6 @@ package external import ( "fmt" - "github.com/ethereum/go-ethereum/crypto" "math/big" "sync" @@ -27,6 +26,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/internal/ethapi" "github.com/ethereum/go-ethereum/log" diff --git a/accounts/keystore/wallet.go b/accounts/keystore/wallet.go index 8f3dfed410..0490f39ff5 100644 --- a/accounts/keystore/wallet.go +++ b/accounts/keystore/wallet.go @@ -17,12 +17,12 @@ package keystore import ( - "github.com/ethereum/go-ethereum/crypto" "math/big" ethereum "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/crypto" ) // keystoreWallet implements the accounts.Wallet interface for the original diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go index 85ba23a165..a99dcd0f5a 100644 --- a/accounts/usbwallet/wallet.go +++ b/accounts/usbwallet/wallet.go @@ -20,7 +20,6 @@ package usbwallet import ( "context" "fmt" - "github.com/ethereum/go-ethereum/crypto" "io" "math/big" "sync" @@ -30,6 +29,7 @@ import ( "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" "github.com/karalabe/hid" ) diff --git a/consensus/clique/clique.go b/consensus/clique/clique.go index 538701cb7f..f4ad928d1d 100644 --- a/consensus/clique/clique.go +++ b/consensus/clique/clique.go @@ -20,8 +20,6 @@ package clique import ( "bytes" "errors" - "github.com/ethereum/go-ethereum/crypto/sha3" - "github.com/ethereum/go-ethereum/rlp" "math/big" "math/rand" "sync" @@ -35,9 +33,11 @@ import ( "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" + "github.com/ethereum/go-ethereum/crypto/sha3" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/params" + "github.com/ethereum/go-ethereum/rlp" "github.com/ethereum/go-ethereum/rpc" lru "github.com/hashicorp/golang-lru" ) diff --git a/consensus/clique/snapshot_test.go b/consensus/clique/snapshot_test.go index 94f746f9d0..b920312a89 100644 --- a/consensus/clique/snapshot_test.go +++ b/consensus/clique/snapshot_test.go @@ -22,7 +22,6 @@ import ( "sort" "testing" - "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/types" @@ -81,7 +80,7 @@ func (ap *testerAccountPool) sign(header *types.Header, signer string) { ap.accounts[signer], _ = crypto.GenerateKey() } // Sign the header and embed the signature in extra data - sig, _ := crypto.Sign(accounts.CliqueHash(header).Bytes(), ap.accounts[signer]) + sig, _ := crypto.Sign(SealHash(header).Bytes(), ap.accounts[signer]) copy(header.Extra[len(header.Extra)-extraSeal:], sig) }