aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/key.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-10 03:12:25 +0800
committerobscuren <geffobscura@gmail.com>2015-06-10 03:12:25 +0800
commitbac9a94ddf20dc530966cbf6cd384aaf94aedc77 (patch)
tree0ced967e60315698cc5056a984d7678c417bc1ce /crypto/key.go
parent0e703d92ac9df61e2ededa8c895c70ded101a607 (diff)
parent14994fa21bf6f05554ff370d41005d06b68d20a5 (diff)
downloaddexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.gz
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.bz2
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.lz
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.xz
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.zst
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.zip
Merge branch 'release/0.9.28'
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