aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 10:48:31 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 18:55:22 +0800
commit9acf5fc03ad7dabcd88eb8972db032122ef5ebe1 (patch)
treee33db1d9846de04aa5d86d920a77d87064d531e5 /crypto
parentf97b8033c8c79f133417805fdd84bc1c36a36089 (diff)
downloaddexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.gz
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.zst
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.zip
Change import go github.com/dexon-foundation/dexon
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bn256/bn256_fast.go2
-rw-r--r--crypto/bn256/bn256_fuzz.go4
-rw-r--r--crypto/bn256/bn256_slow.go2
-rw-r--r--crypto/crypto.go8
-rw-r--r--crypto/crypto_test.go4
-rw-r--r--crypto/ecies/ecies_test.go2
-rw-r--r--crypto/ecies/params.go2
-rw-r--r--crypto/signature_cgo.go4
-rw-r--r--crypto/signature_test.go6
9 files changed, 17 insertions, 17 deletions
diff --git a/crypto/bn256/bn256_fast.go b/crypto/bn256/bn256_fast.go
index 5c081493b..702521c32 100644
--- a/crypto/bn256/bn256_fast.go
+++ b/crypto/bn256/bn256_fast.go
@@ -7,7 +7,7 @@
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
package bn256
-import "github.com/ethereum/go-ethereum/crypto/bn256/cloudflare"
+import "github.com/dexon-foundation/dexon/crypto/bn256/cloudflare"
// G1 is an abstract cyclic group. The zero value is suitable for use as the
// output of an operation, but cannot be used as an input.
diff --git a/crypto/bn256/bn256_fuzz.go b/crypto/bn256/bn256_fuzz.go
index 6aa142117..dd838d7f2 100644
--- a/crypto/bn256/bn256_fuzz.go
+++ b/crypto/bn256/bn256_fuzz.go
@@ -10,8 +10,8 @@ import (
"bytes"
"math/big"
- cloudflare "github.com/ethereum/go-ethereum/crypto/bn256/cloudflare"
- google "github.com/ethereum/go-ethereum/crypto/bn256/google"
+ cloudflare "github.com/dexon-foundation/dexon/crypto/bn256/cloudflare"
+ google "github.com/dexon-foundation/dexon/crypto/bn256/google"
)
// FuzzAdd fuzzez bn256 addition between the Google and Cloudflare libraries.
diff --git a/crypto/bn256/bn256_slow.go b/crypto/bn256/bn256_slow.go
index 47df49d41..56c6437c5 100644
--- a/crypto/bn256/bn256_slow.go
+++ b/crypto/bn256/bn256_slow.go
@@ -7,7 +7,7 @@
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
package bn256
-import "github.com/ethereum/go-ethereum/crypto/bn256/google"
+import "github.com/dexon-foundation/dexon/crypto/bn256/google"
// G1 is an abstract cyclic group. The zero value is suitable for use as the
// output of an operation, but cannot be used as an input.
diff --git a/crypto/crypto.go b/crypto/crypto.go
index 9b3e76d40..8338e39e7 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -28,10 +28,10 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto/sha3"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/common/math"
+ "github.com/dexon-foundation/dexon/crypto/sha3"
+ "github.com/dexon-foundation/dexon/rlp"
)
var (
diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go
index 177c19c0c..fa8521248 100644
--- a/crypto/crypto_test.go
+++ b/crypto/crypto_test.go
@@ -26,8 +26,8 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/common/hexutil"
)
var testAddrHex = "970e8128ab834e8eac17ab8e3812f010678cf791"
diff --git a/crypto/ecies/ecies_test.go b/crypto/ecies/ecies_test.go
index f33f204d5..8d4e47ba7 100644
--- a/crypto/ecies/ecies_test.go
+++ b/crypto/ecies/ecies_test.go
@@ -40,7 +40,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/dexon-foundation/dexon/crypto"
)
var dumpEnc bool
diff --git a/crypto/ecies/params.go b/crypto/ecies/params.go
index 6312daf5a..cc66fe839 100644
--- a/crypto/ecies/params.go
+++ b/crypto/ecies/params.go
@@ -42,7 +42,7 @@ import (
"fmt"
"hash"
- ethcrypto "github.com/ethereum/go-ethereum/crypto"
+ ethcrypto "github.com/dexon-foundation/dexon/crypto"
)
var (
diff --git a/crypto/signature_cgo.go b/crypto/signature_cgo.go
index 340bfc221..64f2fd7aa 100644
--- a/crypto/signature_cgo.go
+++ b/crypto/signature_cgo.go
@@ -23,8 +23,8 @@ import (
"crypto/elliptic"
"fmt"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto/secp256k1"
+ "github.com/dexon-foundation/dexon/common/math"
+ "github.com/dexon-foundation/dexon/crypto/secp256k1"
)
// Ecrecover returns the uncompressed public key that created the given signature.
diff --git a/crypto/signature_test.go b/crypto/signature_test.go
index aecff76bf..3cb850fb8 100644
--- a/crypto/signature_test.go
+++ b/crypto/signature_test.go
@@ -22,9 +22,9 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/common/hexutil"
+ "github.com/dexon-foundation/dexon/common/math"
)
var (