aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-25 20:05:55 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-25 20:05:55 +0800
commit589d27386a4d630f052bf645a9e134a8b2d6fcad (patch)
treea642d7a68465e248e664867fbbea7c8c62f1e4f1 /ethpub
parent0c55a113180955aa149a6e961c6e4bba9a7418e0 (diff)
downloadgo-tangerine-589d27386a4d630f052bf645a9e134a8b2d6fcad.tar
go-tangerine-589d27386a4d630f052bf645a9e134a8b2d6fcad.tar.gz
go-tangerine-589d27386a4d630f052bf645a9e134a8b2d6fcad.tar.bz2
go-tangerine-589d27386a4d630f052bf645a9e134a8b2d6fcad.tar.lz
go-tangerine-589d27386a4d630f052bf645a9e134a8b2d6fcad.tar.xz
go-tangerine-589d27386a4d630f052bf645a9e134a8b2d6fcad.tar.zst
go-tangerine-589d27386a4d630f052bf645a9e134a8b2d6fcad.zip
Fix key generation in ethPub
Diffstat (limited to 'ethpub')
-rw-r--r--ethpub/pub.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go
index b475453af..6a41f575c 100644
--- a/ethpub/pub.go
+++ b/ethpub/pub.go
@@ -142,7 +142,7 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, sc
var keyPair *ethutil.KeyPair
var err error
if key[0:2] == "0x" {
- keyPair, err = ethutil.NewKeyPairFromSec([]byte(ethutil.FromHex(key[0:2])))
+ keyPair, err = ethutil.NewKeyPairFromSec([]byte(ethutil.FromHex(key[2:])))
} else {
keyPair, err = ethutil.NewKeyPairFromSec([]byte(ethutil.FromHex(key)))
}