From 0f51ee6c88f0697cec368d6e2c88b35cc173e37a Mon Sep 17 00:00:00 2001 From: obscuren Date: Thu, 4 Jun 2015 16:52:23 +0200 Subject: crypto: return common.Address rather than raw bytes --- crypto/key.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/key.go') 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 -- cgit