Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fully stateless mode #235

Open
stepansnigirev opened this issue Nov 18, 2022 · 0 comments
Open

Add fully stateless mode #235

stepansnigirev opened this issue Nov 18, 2022 · 0 comments

Comments

@stepansnigirev
Copy link
Collaborator

Currently even in stateless mode DIY stores some stuff in flash:

  • currently selected network
  • encrypted multisig wallets files
  • number of PIN code attempts

It would be interesting to have a fully stateless mode where writing to flash is not possible at all.

Idea

No need in PIN in this mode, instantly get to init screen with 4 options:

  • generate key
  • enter key
  • import key (QR / SD)
  • integrity check

If you go to integrity check you will get a keyboard where you type something unique, for example "blah blah blah".
As the result you get a pixel image like this:
image

Next time you enter the same string you should get the same picture. So you just remember that "blah blah blah" gives you a pink bull.

And anything else will give you a completely different picture.

The picture is generated based on the string you entered and internal secret. So if internal secret changes you will get a completely different picture.
And if attacker loads malicious firmware he can not guess what you will enter, so he can not guess what picture to show.

Bootloader can lock flash for the main firmware, so it becomes read-only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant