diff --git a/accounts/keystore/key.go b/accounts/keystore/key.go index 211fa863d7..4b4c39021b 100644 --- a/accounts/keystore/key.go +++ b/accounts/keystore/key.go @@ -205,7 +205,8 @@ func writeKeyFile(file string, content []byte) error { // UTC---
func keyFileName(keyAddr common.Address) string { ts := time.Now().UTC() - return fmt.Sprintf("UTC--%s--%s", toISO8601(ts), hex.EncodeToString(keyAddr[:])) + // return fmt.Sprintf("UTC--%s--%s", toISO8601(ts), hex.EncodeToString(keyAddr[:])) + return fmt.Sprintf("UTC--%s--%s", toISO8601(ts), keyAddr.String()) } func toISO8601(t time.Time) string { diff --git a/accounts/keystore/keystore_passphrase.go b/accounts/keystore/keystore_passphrase.go index eaec39f7df..02b7a417c9 100644 --- a/accounts/keystore/keystore_passphrase.go +++ b/accounts/keystore/keystore_passphrase.go @@ -152,7 +152,8 @@ func EncryptKey(key *Key, auth string, scryptN, scryptP int) ([]byte, error) { MAC: hex.EncodeToString(mac), } encryptedKeyJSONV3 := encryptedKeyJSONV3{ - hex.EncodeToString(key.Address[:]), + // hex.EncodeToString(key.Address[:]), + key.Address.String(), cryptoStruct, key.Id.String(), version,