penumbra
penumbra copied to clipboard
Better console UX for seed phrase generation
This is in response to a long-outstanding comment in the pcli
code that we should make it harder to accidentally spill your seed phrase when copying console output. This fixes that, as well as generally improving seed phrase ergonomics in other ways:
- Seed phrases are now displayed in a way that makes them easier to read when writing them down.
- Users are prompted to explicitly confirm that they have written down their seed phrase.
- Seed phrases are cleared from the screen after being written down, so they cannot accidentally show up in copied logs after the fact.
The interaction looks like the below...
- Initially, you see this:
Welcome to Penumbra. π
Below is your private seed phrase.
No other person should ever read it.
It cannot be recovered if lost.
It will never be displayed again.
Write it down right now and keep it safe!
1. execute 7. carry 13. shield 19. loan
2. confirm 8. mad 14. youth 20. combine
3. maximum 9. floor 15. husband 21. opinion
4. choose 10. frozen 16. vessel 22. solution
5. now 11. amount 17. fly 23. vibrant
6. attract 12. sport 18. shallow 24. oval
To continue, type:
I have written down my private seed phrase.
> β
- Then, as you're typing the confirmation prompt, it looks like this:
Welcome to Penumbra. π
Below is your private seed phrase.
No other person should ever read it.
It cannot be recovered if lost.
It will never be displayed again.
Write it down right now and keep it safe!
1. execute 7. carry 13. shield 19. loan
2. confirm 8. mad 14. youth 20. combine
3. maximum 9. floor 15. husband 21. opinion
4. choose 10. frozen 16. vessel 22. solution
5. now 11. amount 17. fly 23. vibrant
6. attract 12. sport 18. shallow 24. oval
To continue, type:
ate seed phrase.
> I have written down my privβ
- Finally, when you're done, it censors the seed phrase in the console:
Welcome to Penumbra. π
Below is your private seed phrase.
No other person should ever read it.
It cannot be recovered if lost.
It will never be displayed again.
Write it down right now and keep it safe!
1. ββββββββ 7. ββββββββ 13. ββββββββ 19. ββββββββ
2. ββββββββ 8. ββββββββ 14. ββββββββ 20. ββββββββ
3. ββββββββ 9. ββββββββ 15. ββββββββ 21. ββββββββ
4. ββββββββ 10. ββββββββ 16. ββββββββ 22. ββββββββ
5. ββββββββ 11. ββββββββ 17. ββββββββ 23. ββββββββ
6. ββββββββ 12. ββββββββ 18. ββββββββ 24. ββββββββ
Saving backup wallet to /home/$USER/.local/share/penumbra-testnet-archive/f1b1dd6d7b830d0e/custody.json