diff --git a/client/plasma_cash/transaction.go b/client/plasma_cash/transaction.go index 4ba90c03..21be7629 100644 --- a/client/plasma_cash/transaction.go +++ b/client/plasma_cash/transaction.go @@ -9,9 +9,9 @@ import ( "strconv" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto/sha3" "github.com/ethereum/go-ethereum/rlp" "github.com/loomnetwork/go-loom/common/evmcompat" + "golang.org/x/crypto/sha3" ) type LoomTx struct { @@ -93,7 +93,7 @@ func (l *LoomTx) rlpEncodeWithSha3() ([]byte, error) { if err != nil { return []byte{}, err } - d := sha3.NewKeccak256() + d := sha3.NewLegacyKeccak256() d.Write(hash) return d.Sum(nil), nil } diff --git a/common/evmcompat/helpers.go b/common/evmcompat/helpers.go index c84674be..6198f302 100644 --- a/common/evmcompat/helpers.go +++ b/common/evmcompat/helpers.go @@ -15,8 +15,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/crypto/sha3" ssha "github.com/miguelmota/go-solidity-sha3" + "golang.org/x/crypto/sha3" ) type SignatureType uint8 @@ -124,7 +124,7 @@ func SoliditySHA3(pairs []*Pair) ([]byte, error) { return nil, err } - d := sha3.NewKeccak256() + d := sha3.NewLegacyKeccak256() d.Write(data) return d.Sum(nil), nil }