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

14446 Commits

Author SHA1 Message Date
Jochen Hoenicke
4805f27e8c Fix checking change address
There was a signed/unsigned problem: size_t is unsigned, but we use
-1 to indicate mismatch.  The problem was that when checking the input
address path, it still did this unintentionally when a mismatch was
detected, forbidding to sign with mismatched inputs, even when there
is no change address.

We now use 1 for mismatch.  Also we don't allow change address anymore
if the inputs have a path of length 1.  This simplifies the code a bit.
2017-11-03 19:12:41 +01:00
Pavol Rusnak
af86f57da3
u2f: add bitfinex 2017-11-03 19:06:59 +01:00
Jochen Hoenicke
5e98b0ffd6 Added U2F entry for Bitfinex (#237) 2017-11-03 18:57:50 +01:00
Pavol Rusnak
fa02dec704
layout2: use macro for layoutSwipe 2017-11-03 18:56:55 +01:00
Saleem Rashid
eebd53fd09 layout2: Disable oledSwipeLeft with DEBUG_LINK (#239)
This greatly reduces time for device tests
2017-11-03 18:54:02 +01:00
Pavol Rusnak
95a522bf1a
fix typo 2017-11-03 18:52:23 +01:00
Jochen Hoenicke
026aa4a9ea Added bech32_prefix fields (#52) 2017-11-03 18:50:17 +01:00
Jochen Hoenicke
f366fb81c5 Updated to latest from bech32 repository.
hrp is ASCII character, not 5 bit words
2017-11-03 18:49:19 +01:00
Jochen Hoenicke
a5653dafe7 Increased length of addresses 2017-11-03 18:49:19 +01:00
Jochen Hoenicke
506167e3f2 Bech32 (BIP173) address support 2017-11-03 18:49:19 +01:00
Jochen Hoenicke
ebb9540ac2 Added unit tests for sign/verifymessage bech32 2017-11-03 18:32:45 +01:00
Jochen Hoenicke
6d74c6c9df Updated segwit_native tests to bech32 and python3 2017-11-03 18:32:45 +01:00
Jan Pochyla
278610dce1 apps/homescreen: fix backlight 2017-11-03 11:49:41 +01:00
Karel Bílek
9a91d3b7ac
Merge pull request #48 from trezor/runn1ng-patch-b2x
Adding Bitcoin 2X
2017-11-01 14:21:33 +01:00
Jan Pochyla
8342aa2e7d tests: enable test_msg_resetdevice.py 2017-10-31 17:07:13 +01:00
Jan Pochyla
0d17bc3f94 apps/management: fix reset_device, tune code style 2017-10-31 17:06:35 +01:00
Jan Pochyla
cc9ddcbc12 device_tests: wrap tests in a session 2017-10-31 17:04:27 +01:00
Jan Pochyla
936487a523 tests: run v1 protocol tests 2017-10-31 13:55:51 +01:00
Jan Pochyla
f4ebe368b9 tests: enable load_device test 2017-10-31 13:55:36 +01:00
Jan Pochyla
fcd793e6e4 transport_hid: force V1 transport with env var 2017-10-31 13:51:13 +01:00
Jan Pochyla
c632f9450f trezorhal: add spread spectrum clock 2017-10-31 11:49:18 +01:00
Jan Pochyla
ce3dc61e63 tests: ignore test_cosi.py 2017-10-30 23:48:09 +01:00
Jan Pochyla
f093ca23d5 tests: ignore specific tests, testpy -> test_emu 2017-10-30 18:52:10 +01:00
Jan Pochyla
431a711060 usb: add trezor1-like debuglink 2017-10-30 17:34:21 +01:00
Jan Pochyla
6213974b6e prodtest: emulate python impl in OTP READ 2017-10-30 14:08:56 +01:00
Jan Pochyla
1e883530b4 scons: get file sizes in portable way 2017-10-30 14:07:52 +01:00
Pavol Rusnak
01356bad72
keyctl: show digest and path 2017-10-29 23:30:56 +01:00
Pavol Rusnak
7d0a12c29e
unix: fix build 2017-10-29 23:26:44 +01:00
Pavol Rusnak
6edb97133b
build: use recent protobuf in docker 2017-10-29 21:50:38 +01:00
Pavol Rusnak
311a28242b
boardloader: fix production build, disable reset_flags_init for now 2017-10-29 21:12:40 +01:00
Pavol Rusnak
16f657361c
boardloader: disable BOR protection; fix setting OB flags 2017-10-29 18:07:05 +01:00
Pavol Rusnak
a08f18c2ce
boardloader: use PVD level 4 2017-10-29 17:58:33 +01:00
Pavol Rusnak
30ddb53c11
prodtest: fix calls to sdcard functions 2017-10-29 17:51:16 +01:00
Pavol Rusnak
6738796d8b
trezorhal: call shutdown in default_handler 2017-10-29 17:50:50 +01:00
Pavol Rusnak
69c17dae9b
trezorhal: use uint32_t* for sdcard_{read,write}_blocks 2017-10-29 16:34:09 +01:00
Pavol Rusnak
fa802e9353
boardloader: fix test for existence of bootloader on sd card 2017-10-29 16:23:25 +01:00
Pavol Rusnak
b9a599d08d
makefile: add gdb_prodtest target 2017-10-29 15:45:41 +01:00
Pavol Rusnak
a56da7d7ed
prodtest: fix sdcard test 2017-10-29 15:07:34 +01:00
Pavol Rusnak
55b8013798
coins.json: use upub prefix for bitcoin testnet segwit 2017-10-28 18:06:28 +02:00
Pavol Rusnak
5d6d342813
bootloader: erase storage on vendor change 2017-10-27 18:45:33 +02:00
Jan Pochyla
836508657d prodtest: style 2017-10-27 17:26:14 +02:00
Pavol Rusnak
3851404d04
small cosmetic changes to prodtest and others 2017-10-27 06:01:22 +02:00
Pavol Rusnak
d0e81edc8f
bootloader: check chunk hash before flashing 2017-10-27 05:09:35 +02:00
Pavol Rusnak
36143033c4
bootloader: check vendor header / image header before flashing 2017-10-27 04:49:59 +02:00
Pavol Rusnak
9690f1abdf
bootloader: load chunk into memory first, then save it to flash 2017-10-27 04:20:03 +02:00
Pavol Rusnak
4d36d0e1c1
trezorhal: use sectrue where possible 2017-10-27 03:58:00 +02:00
Pavol Rusnak
efa918a2f9
prodtest: code cleanup, fix build 2017-10-27 01:00:39 +02:00
Jan Pochyla
905e0bc82a
prodtest: codestyle, touch, fixes 2017-10-26 23:55:15 +02:00
Jan Pochyla
51d00e1de7
trezorhal/usb: add Inf timeout to blocking fns 2017-10-26 23:55:14 +02:00
Jan Pochyla
9cb342fcb6
prodtest: implement commands 2017-10-26 23:55:14 +02:00