aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/key.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-05 01:47:23 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-05 01:47:23 +0800
commit45152dead5c6bc144f8ed51ed85d5ef64f783735 (patch)
tree48aa51432821a0d49ffa6d2a015c16f4867a1c63 /crypto/key.go
parent10fc73376789b1b016fbbd86df3b378df0238a0c (diff)
parent912cf7ba049e4bcd5e497c62bb7cb96e7502f1b9 (diff)
downloadgo-tangerine-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar
go-tangerine-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.gz
go-tangerine-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.bz2
go-tangerine-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.lz
go-tangerine-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.xz
go-tangerine-45152dead5c6bc144f8ed51ed85d5ef64f783735.tar.zst
go-tangerine-45152dead5c6bc144f8ed51ed85d5ef64f783735.zip
Merge pull request #1181 from obscuren/txpool_fixes
cmd: transaction pool fixes and improvements
Diffstat (limited to 'crypto/key.go')
-rw-r--r--crypto/key.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/key.go b/crypto/key.go
index 0c5ce4254..0b76c43ff 100644
--- a/crypto/key.go
+++ b/crypto/key.go
@@ -124,7 +124,7 @@ func NewKeyFromECDSA(privateKeyECDSA *ecdsa.PrivateKey) *Key {
id := uuid.NewRandom()
key := &Key{
Id: id,
- Address: common.BytesToAddress(PubkeyToAddress(privateKeyECDSA.PublicKey)),
+ Address: PubkeyToAddress(privateKeyECDSA.PublicKey),
PrivateKey: privateKeyECDSA,
}
return key