penumbra icon indicating copy to clipboard operation
penumbra copied to clipboard

Better console UX for seed phrase generation

Open plaidfinch opened this issue 2 years ago β€’ 0 comments

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...

  1. 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.
> β–ˆ
  1. 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β–ˆ
  1. 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

plaidfinch avatar Aug 17 '22 23:08 plaidfinch