From fd9da72536b73351bbcdc1e9dbbbb8c0e4bfb21b Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 31 Oct 2014 12:37:43 +0100 Subject: ethcrypto => crypto --- ethpipe/js_pipe.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ethpipe/js_pipe.go') 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 { -- cgit