1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-12 09:38:08 +00:00
Commit Graph

46 Commits

Author SHA1 Message Date
andrew
1d43f9bea2
Delete the U2F counter if it's set to None. 2019-02-15 12:39:17 +01:00
andrew
32c80e9889
Make U2F counter public. 2019-02-15 12:39:17 +01:00
andrew
a19446fabd
Fix use_passphrase setting in storage.py. 2019-02-15 12:39:17 +01:00
andrew
e3ab0dfbcb
Reformat Python files using black, isort and flake8. 2019-02-15 12:39:16 +01:00
andrew
8be3896038
Convert U2F counter from private to public to take advantage of the more efficient implementation. 2019-02-15 12:39:16 +01:00
andrew
4cea4d2a4a
Implement efficient counter in storage.py. 2019-02-15 12:39:15 +01:00
andrew
7f7a8a2ca6
Store boolean values as '0x00' and '0x01' instead of '' and '0x01'. 2019-02-15 12:39:15 +01:00
andrew
3517018f30
Display the number of PIN entry attempts remaining. 2019-02-15 12:39:15 +01:00
andrew
9f75d342a4
Add trezor-storage submodule. Update modtrezorconfig to work with the new storage_get() interface. Update tests to expect None instead of bytes(), when the value is not found in the storage. 2019-02-15 12:39:14 +01:00
Jan Pochyla
2d70d5d447 management: restore u2f_counter on device recovery 2019-01-15 17:02:23 +01:00
Pavol Rusnak
d2521de385
storage: implement no_backup option (aka seedless setup) 2018-10-04 17:36:44 +02:00
Jan Pochyla
dcb15f77c3 src: run black 2018-07-10 13:05:15 +02:00
Jan Pochyla
ead154b907 src: run isort 2018-07-10 13:05:15 +02:00
Jan Pochyla
6751d84236 style: skip formatting in special cases 2018-07-10 11:17:12 +02:00
Pavol Rusnak
a6e8a37239
src/apps/common/storage: add autolock_delay_ms variable 2018-04-04 01:19:14 +02:00
Pavol Rusnak
b83ffee3af
src/apps/common: implement unfinished_backup flag in the storage 2018-03-12 16:22:56 +01:00
Pavol Rusnak
e6bfd192e5
src/apps/common: implement passphrase_source and use it 2018-03-12 15:27:30 +01:00
Pavol Rusnak
6cf9bb1d93
src/apps/common: refactor new_device_id function 2018-03-12 15:01:13 +01:00
Pavol Rusnak
0484f599fd
src/apps/common: introduce limit for homescreen size 2018-03-08 23:49:09 +01:00
Pavol Rusnak
4f98f02ff9
src/apps/common: fix typo in set_u2f_counter 2018-02-28 18:58:42 +01:00
Pavol Rusnak
c0a0630cba
src/apps/fido_u2f: implement u2f counter 2018-02-28 18:53:52 +01:00
Jan Pochyla
375a95c214 src/apps: cleanup workflow modules 2018-02-27 16:36:17 +01:00
Pavol Rusnak
1c92002954
src/apps/management: implement BackupDevice message 2018-02-27 00:31:33 +01:00
Pavol Rusnak
736dec1419
src/apps/management: implement ApplyFlags message 2018-02-14 23:50:26 +01:00
Pavol Rusnak
39576eb2a7
src/main: report device_id as usb serial number 2018-02-07 14:59:09 +01:00
Jan Pochyla
5a5842111b apps/management/reset_device: allow to skip backup 2018-02-05 14:54:46 +01:00
Jan Pochyla
e907099be1 apps/common/storage: fix usage of public fields 2018-02-05 13:49:02 +01:00
Pavol Rusnak
965bf84cdb
tests: cleanup flake8 warnings 2017-12-16 02:11:26 +01:00
Pavol Rusnak
bc6d9b47a3
storage: use one char for value ids 2017-12-14 21:59:47 +01:00
Pavol Rusnak
a56d322eca
storage: add homescreen 2017-12-13 02:41:59 +01:00
Jan Pochyla
757978e1c8 apps/management: fix change_pin 2017-12-08 17:26:51 +01:00
Jan Pochyla
8288255048 storage: use new api, remove pin 2017-11-05 21:04:47 +01:00
Jan Pochyla
49cc4651c2 bunch of api cleanups 2017-09-19 23:47:35 +02:00
Pavol Rusnak
16c7284e98
apps.common: introduce cache module instead of caching in global variables 2017-05-09 01:10:45 +02:00
Jan Pochyla
fd9361ce77 apps.common.storage: make config ids public 2017-01-24 14:14:03 +01:00
Jan Pochyla
984f088519 apps.common: fix request_pin 2017-01-17 17:43:08 +01:00
Jan Pochyla
e73ff1f3c2 apps: improve language getters/setters 2016-12-15 12:48:33 +01:00
Jan Pochyla
2a58ca986f apps.common.storage: fix device_id init 2016-12-15 12:33:39 +01:00
Jan Pochyla
b8968e7387 minor perf changes 2016-12-12 15:26:49 +01:00
Jan Pochyla
05f832cae7 storage: remove pbuf, add pin lock 2016-11-23 15:06:39 +01:00
Jan Pochyla
b89666fb87 apps.debug: cleanup 2016-11-15 11:59:27 +01:00
Pavol Rusnak
72a41182c2
apps.common.storage: fix device_id generator 2016-11-12 15:03:45 +01:00
Jan Pochyla
a44e16a9ca rework high-level storage
We don't use Storage protobuf message anymore, and instead all keys are as granular as possible.

trezor.storage provides high-level function interface.
2016-10-14 15:35:44 +02:00
Jan Pochyla
d0bb7edbfa storage: change api to protobuf 2016-10-06 15:05:14 +02:00
Jan Pochyla
407169af01 import qualified const() 2016-09-29 12:29:43 +02:00
Jan Pochyla
0e799d62af move sub-workflows do apps/common 2016-09-28 23:30:10 +02:00