crypto: return common.Address rather than raw bytes

This commit is contained in:
obscuren
2015-06-04 16:52:23 +02:00
parent dcdb4554d7
commit 0f51ee6c88
3 changed files with 8 additions and 8 deletions

View File

@@ -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