diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-04 22:52:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-05 01:28:39 +0800 |
commit | 0f51ee6c88f0697cec368d6e2c88b35cc173e37a (patch) | |
tree | 0aae35efd25eed2f9c1486e648db33359ae2ff07 /crypto/key.go | |
parent | dcdb4554d7f7ea3e96fec57805f0ea1042d0abc7 (diff) | |
download | dexon-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.tar.gz dexon-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.tar.zst dexon-0f51ee6c88f0697cec368d6e2c88b35cc173e37a.zip |
crypto: return common.Address rather than raw bytes
Diffstat (limited to 'crypto/key.go')
-rw-r--r-- | crypto/key.go | 2 |
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 |