aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-04-18 14:15:11 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-15 22:09:56 +0800
commit7f9d5b1f1cb1a07e2600533a85e585c2a6dfe7bd (patch)
treea6061686cb458ede8f1a72eb9ac8e785bd0d420e /p2p
parenta1be735b1cd6d02bc69b9bb011c56e62cec290f5 (diff)
downloadgo-tangerine-7f9d5b1f1cb1a07e2600533a85e585c2a6dfe7bd.tar
go-tangerine-7f9d5b1f1cb1a07e2600533a85e585c2a6dfe7bd.tar.gz
go-tangerine-7f9d5b1f1cb1a07e2600533a85e585c2a6dfe7bd.tar.bz2
go-tangerine-7f9d5b1f1cb1a07e2600533a85e585c2a6dfe7bd.tar.lz
go-tangerine-7f9d5b1f1cb1a07e2600533a85e585c2a6dfe7bd.tar.xz
go-tangerine-7f9d5b1f1cb1a07e2600533a85e585c2a6dfe7bd.tar.zst
go-tangerine-7f9d5b1f1cb1a07e2600533a85e585c2a6dfe7bd.zip
crypto: use go-ethereum secp256k1 package to avoid symbol conflict (#374)
Diffstat (limited to 'p2p')
-rw-r--r--p2p/discover/node.go2
-rw-r--r--p2p/rlpx.go2
2 files changed, 2 insertions, 2 deletions
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"
)