From ac3378ba084e1fbf25c11581c224009a3cf75062 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 18 Apr 2019 14:15:11 +0800 Subject: crypto: use go-ethereum secp256k1 package to avoid symbol conflict (#374) --- p2p/discover/node.go | 2 +- p2p/rlpx.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'p2p') diff --git a/p2p/discover/node.go b/p2p/discover/node.go index 1c5560839..18b4aeadd 100644 --- a/p2p/discover/node.go +++ b/p2p/discover/node.go @@ -25,8 +25,8 @@ import ( "github.com/dexon-foundation/dexon/common/math" "github.com/dexon-foundation/dexon/crypto" - "github.com/dexon-foundation/dexon/crypto/secp256k1" "github.com/dexon-foundation/dexon/p2p/enode" + "github.com/ethereum/go-ethereum/crypto/secp256k1" ) // node represents a host on the network. diff --git a/p2p/rlpx.go b/p2p/rlpx.go index a19eff7e9..45253e1e9 100644 --- a/p2p/rlpx.go +++ b/p2p/rlpx.go @@ -38,8 +38,8 @@ import ( "github.com/dexon-foundation/dexon/common/bitutil" "github.com/dexon-foundation/dexon/crypto" "github.com/dexon-foundation/dexon/crypto/ecies" - "github.com/dexon-foundation/dexon/crypto/secp256k1" "github.com/dexon-foundation/dexon/rlp" + "github.com/ethereum/go-ethereum/crypto/secp256k1" "github.com/golang/snappy" "golang.org/x/crypto/sha3" ) -- cgit