aboutsummaryrefslogtreecommitdiffstats
path: root/ethpipe/js_pipe.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-31 19:37:43 +0800
committerobscuren <geffobscura@gmail.com>2014-10-31 19:37:43 +0800
commitfd9da72536b73351bbcdc1e9dbbbb8c0e4bfb21b (patch)
tree5f60296ff025ec08962cdd2b4f6bbcfd1479cfdb /ethpipe/js_pipe.go
parent3ee0461cb5b6e4a5e2d287180afbdb681805a662 (diff)
downloaddexon-fd9da72536b73351bbcdc1e9dbbbb8c0e4bfb21b.tar.gz
dexon-fd9da72536b73351bbcdc1e9dbbbb8c0e4bfb21b.tar.zst
dexon-fd9da72536b73351bbcdc1e9dbbbb8c0e4bfb21b.zip
ethcrypto => crypto
Diffstat (limited to 'ethpipe/js_pipe.go')
-rw-r--r--ethpipe/js_pipe.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/ethpipe/js_pipe.go b/ethpipe/js_pipe.go
index ee4637d8f..deb3cf091 100644
--- a/ethpipe/js_pipe.go
+++ b/ethpipe/js_pipe.go
@@ -6,7 +6,7 @@ import (
"sync/atomic"
"github.com/ethereum/go-ethereum/chain"
- "github.com/ethereum/go-ethereum/ethcrypto"
+ "github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethstate"
"github.com/ethereum/go-ethereum/ethutil"
)
@@ -114,7 +114,7 @@ func (self *JSPipe) IsContract(address string) bool {
}
func (self *JSPipe) SecretToAddress(key string) string {
- pair, err := ethcrypto.NewKeyPairFromSec(ethutil.Hex2Bytes(key))
+ pair, err := crypto.NewKeyPairFromSec(ethutil.Hex2Bytes(key))
if err != nil {
return ""
}
@@ -192,12 +192,12 @@ func (self *JSPipe) Transact(key, toStr, valueStr, gasStr, gasPriceStr, codeStr
}
}
- var keyPair *ethcrypto.KeyPair
+ var keyPair *crypto.KeyPair
var err error
if ethutil.IsHex(key) {
- keyPair, err = ethcrypto.NewKeyPairFromSec([]byte(ethutil.Hex2Bytes(key[2:])))
+ keyPair, err = crypto.NewKeyPairFromSec([]byte(ethutil.Hex2Bytes(key[2:])))
} else {
- keyPair, err = ethcrypto.NewKeyPairFromSec([]byte(ethutil.Hex2Bytes(key)))
+ keyPair, err = crypto.NewKeyPairFromSec([]byte(ethutil.Hex2Bytes(key)))
}
if err != nil {