ChorusOne / eth-staking-smith

Ethereum 2.0 deposit CLI / library
Apache License 2.0
19 stars 6 forks source link

Refactor keystore to get rid of additional decrypt #10

Closed mksh closed 2 years ago

mksh commented 2 years ago
jenpaff commented 2 years ago
  • Add VotingKeyMaterial wrapper struct to use in place of Lighthouse's Keystore, which carries plain text private key of a validator

    • Get rid of additional keystore .decrypt() call on export, using private key of VotingKeyMaterial

    • Thus, remove 30% of call length, now 1 validator is generated in less than 10 seconds on my Mac

almost means we can remove pregeneration