aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/key.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-04 22:52:23 +0800
committerobscuren <geffobscura@gmail.com>2015-06-05 01:28:39 +0800
commit0f51ee6c88f0697cec368d6e2c88b35cc173e37a (patch)
tree0aae35efd25eed2f9c1486e648db33359ae2ff07 /crypto/key.go
parentdcdb4554d7f7ea3e96fec57805f0ea1042d0abc7 (diff)
downloadgo-tangerine-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.tar
go-tangerine-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.tar.gz
go-tangerine-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.tar.bz2
go-tangerine-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.tar.lz
go-tangerine-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.tar.xz
go-tangerine-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.tar.zst
go-tangerine-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.zip
crypto: return common.Address rather than raw bytes
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