1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00
Commit Graph

2731 Commits

Author SHA1 Message Date
Andrew Kozlik
fd6eb333a6
src/apps/common/storage: allow U2F counter to be written even when storage is locked 2019-02-15 12:43:38 +01:00
Andrew Kozlik
6afd9b1d09
tests: Do not require storage to be unlocked prior to calling storage_change_pin(). The function checks the old PIN anyway. 2019-02-15 12:41:55 +01:00
andrew
52c7f0eb93
config: Use efficient implementation of U2F counter from trezor-storage. 2019-02-15 12:41:55 +01:00
andrew
8b78e6710a
common.c: Add error_shutdown().
Upon fatal error display 'Contact TREZOR support'.
2019-02-15 12:41:43 +01:00
andrew
36f354714d
modtrezorconfig: Chenge ui_wait_callback() to return secbool. 2019-02-15 12:39:18 +01:00
andrew
c106e81a05
Update trezor-storage. 2019-02-15 12:39:18 +01:00
andrew
55e030dbae
Add config.lock(). 2019-02-15 12:39:18 +01:00
Pavol Rusnak
8832c6e63b
embed/trezorhal: rename flash functions
flash_erase_sector -> flash_erase
flash_lock -> flash_lock_write
flash_unlock -> flash_unlock_write
2019-02-15 12:39:18 +01:00
Pavol Rusnak
b754ee8cf6
embed/trezorhal: collect HW entropy before MPU kicks in 2019-02-15 12:39:18 +01:00
Pavol Rusnak
c0317e1aff
embed/trezorhal: add more checks to flash write functions 2019-02-15 12:39:18 +01:00
Pavol Rusnak
40325f4069
makefile: add debugging targets for reading/erasing storage sectors 2019-02-15 12:39:17 +01:00
andrew
8541c4265b
Fix comment in _next_counter(). 2019-02-15 12:39:17 +01:00
Pavol Rusnak
434a9c2084
storage: add norcow_config.h, reorganize storage sources in SConscript files 2019-02-15 12:39:17 +01:00
andrew
0309e9e520
Update trezor-storage submodule. 2019-02-15 12:39:17 +01:00
andrew
1d43f9bea2
Delete the U2F counter if it's set to None. 2019-02-15 12:39:17 +01:00
andrew
92faa9f958
Fix parameter count for config.delete(). 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
4246d7f6cd
Update trezor-storage submodule (do not automatically lock the storage after wipe). 2019-02-15 12:39:16 +01:00
andrew
e3ab0dfbcb
Reformat Python files using black, isort and flake8. 2019-02-15 12:39:16 +01:00
andrew
bddb72d76a
Include trezor-storage before micropython. 2019-02-15 12:39:16 +01:00
andrew
1c0946f562
Fix typo in include. 2019-02-15 12:39:16 +01:00
andrew
d41072b0ce
Update origin for trezor-storage submodule. 2019-02-15 12:39:16 +01:00
andrew
fa7b496a9a
Revert changes to seed recovery dialog, to avoid tests failing. These changes were moved to the branch andrewkozlik/pin-messages. 2019-02-15 12:39:16 +01:00
andrew
97a4cdb68e
Use only unique device ID as salt to storage_init(). Update storage submodule. 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
fa339bbe06
Add config.delete(key) method. 2019-02-15 12:39:15 +01:00
andrew
4a194e48c6
Update trezor-storage submodule. 2019-02-15 12:39:15 +01:00
andrew
5f94b6a6d2
Add CPUID, flash size and unique device ID as salt to storage_init(). 2019-02-15 12:39:15 +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
11ba0b424e
Improve messages in the seed recovery dialog to better match the terminology used in Trezor wallet. 2019-02-15 12:39:15 +01:00
andrew
efe8a7f065
Improve messages in the Enable PIN dialog and Change PIN dialog. 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
Pavol Rusnak
0617fe540f
embed/firmware: next version will be 2.1.0 2019-02-15 02:00:46 +01:00
Pavol Rusnak
ae9cdec0d8
src/apps/wallet/sign_tx: add default values for branch_id (zcash) 2019-02-15 01:51:23 +01:00
Tomas Susanka
e81f89288f
Merge pull request #442 from ph4r05/ph4r05/xmr-get-txkey
xmr: get_tx_keys, live_refresh
2019-02-13 13:50:30 +01:00
Dusan Klinec
ab9ab25355
xmr: get_tx_keys, live_refresh 2019-02-13 13:28:42 +01:00
Pavol Rusnak
4dc8110b31
embed/trezorhal: add touch_sensitivity function 2019-02-12 14:40:38 +01:00
Jan Pochyla
ce972a7a32 fix code style 2019-02-05 12:52:34 +01:00
Jan Pochyla
2704cc73b8 vendor: remove forgotten directory 2019-02-05 11:23:07 +01:00
Jan Pochyla
8cebcaba01 nem: fix mosaic properties list 2019-02-05 11:05:43 +01:00
Pavol Rusnak
67c07902a3
src/apps/wallet/sign_tx: fix typo 2019-02-04 13:57:31 +01:00
Pavol Rusnak
f60e689a4e
src/apps/wallet/sign_tx: fix style 2019-02-04 01:51:56 +01:00
Pavol Rusnak
4225fe7fa8
src/apps/wallet/sign_tx: implemented simplified API for MultisigRedeemScriptType
If address_n is the same for all nodes in the multisig, provide it just once
and supply nodes directly (not in the HDNodePathType structure)
2019-02-04 01:15:13 +01:00
Pavol Rusnak
6974d037a9
src/apps/wallet/sign_tx: implement tx.branch_id field 2019-01-31 21:03:58 +01:00
Petr Kracík
178d4fe598 docker: fix broken environment (#472) 2019-01-30 17:28:00 +01:00
Tomas Susanka
38b3e44ac9 cardano: send ButtonRequest.Address in get_address 2019-01-29 17:24:25 +01:00
Tomas Susanka
4e9ef09798 eth: modify sign_tx to accept strings as well 2019-01-29 17:19:10 +01:00