trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

Boot sequence in rust

Open TychoVrahe opened this issue 2 years ago • 6 comments

This PR reimplements boot sequence in rust.

Includes pin input, sd card salt validation, lockscreen including users avatar,+name, pin callback from storage, storage unlock.

~~Storage handling builds on #2536 , some other helper methods are implemented and should be usable like this, but when some complex storage solution is merged (e.g. #2214 ), this should be redone.~~

This unfortunately duplicates some python code, that is right now needed in both rust and python.

TychoVrahe avatar Sep 20 '22 12:09 TychoVrahe

rebased onto #2536 and done some cleaning

TychoVrahe avatar Oct 03 '22 12:10 TychoVrahe

rebased on top of #2571 , so that new homescreen is shown

TychoVrahe avatar Oct 20 '22 20:10 TychoVrahe

rebased onto current homescreen implementation

TychoVrahe avatar Jan 09 '23 21:01 TychoVrahe

rebased on current master and added support for T2B1. Few open issues in todos still.

TychoVrahe avatar Aug 31 '23 21:08 TychoVrahe

I believe this is now ready to review.

The UI changes are caused by the different pin callback implementation, the remaining seconds message is shown earlier, which is likely more correct.

Merging this would probably make implementing stuff like https://github.com/trezor/trezor-firmware/issues/2110 more difficult, as the USB is handled by python which is not running yet when unlocking the device for first time.

TychoVrahe avatar Sep 04 '23 12:09 TychoVrahe