allow key/password filename to be prefixed by anything

Description

The account order returned by eth_accounts needs to be deterministic and not only based on the account address. We should change the logic to support any prefix in the the key/password filename.

e.g.

(unix timestamp prefix)
1571780601_fe3b557e8fb62b89f4916b721be55ceb828dbd73.key
1571780601_fe3b557e8fb62b89f4916b721be55ceb828dbd73.password

 

(utc timestamp prefix -like geth)

UTC--2019-10-23T03-54-58.146398000Z--44894a0bf38c4f8b290ccc544aff2c95edb3ffab.key

UTC--2019-10-23T03-54-58.146398000Z--44894a0bf38c4f8b290ccc544aff2c95edb3ffab.password

Done criteria

  • key and password files can be prefixed with anything

  • eth_accounts will keep using alphabetical ordering

 

Status

Assignee

Lucas Corte Real Saldanha

Reporter

Lucas Corte Real Saldanha

Labels

None

Refinement State

Not Started

Scrum Team

None

Story Points

1

Sprint

None

Priority

P3
Configure