optimism-java / shisui

Ethereum Portal Network Client written in Go
https://www.ethportal.net/clients/shisui
GNU Lesser General Public License v3.0
6 stars 6 forks source link

Save/load private key to file "clientKey" #178

Closed r4f4ss closed 1 month ago

r4f4ss commented 1 month ago

fixes https://github.com/optimism-java/shisui/issues/168

  1. If flag --private.key is used, use the key received
  2. Looks for file dataDir/clientKey for a key, if find one, use it as private key
  3. If can not find a key, creates a new one
  4. Always writes the current key to the file dataDir/clientKey