matejcik
5885978c83
Merge branch 'release/2020-04'
2020-04-15 15:00:23 +02:00
Andrew Kozlik
e38ced8c05
tests/u2f-hid: Disable strict timing checks in HIDTest and increase receive timeout to avoid failures in CI when emulator is slow to respond.
2020-04-06 09:53:42 +02:00
Tomas Susanka
bf20537f41
core: add option to omit cancel button in HoldToConfirm; add it to reset
2020-03-30 16:00:12 +00:00
matejcik
1b50877545
tests: streamline TrezorFailure exception usage
2020-03-26 11:30:06 +01:00
matejcik
b440ca1ec5
python: drop deprecated name CallException
2020-03-26 11:30:06 +01:00
matejcik
9a330f3475
python: unify protobuf-encoding code paths
...
Protobuf encoding now happens in TrezorClient, and transports get encoded blobs
to (chunkify and) send. This is a better design because transports don't need
to know about protobuf.
It also lays groundwork for sending raw bytes feature (#116 )
This commit also removes all vestiges of ProtocolV2 which was never used and
will probably need to be redesigned from the ground up anyway. The code is
still ready for protocol flexibility.
2020-03-26 11:30:06 +01:00
matejcik
9d29952a15
python: move out deprecated ckd_public
2020-03-26 11:30:06 +01:00
matejcik
325dae890e
python: completely drop trezorlib.coins and trezorlib.tx_api
2020-03-26 11:30:06 +01:00
matejcik
5a526888cf
python: move json_to_tx to btc.from_json, add test cases
2020-03-26 11:30:06 +01:00
matejcik
b3569a53e6
tests: update tx_cache usages
2020-03-26 11:30:06 +01:00
matejcik
5cd7c72353
tests: rework tx cache
...
The cache will no longer add new txes transparently.
To add a transaction, see: ./tests/tx_cache.py --help
2020-03-26 11:30:06 +01:00
Tomas Susanka
ae4f927a45
tests: test incorrect script type
2020-03-20 14:19:31 +00:00
matejcik
da89a17ce5
all: add checks for prev_hash size
2020-03-20 14:19:31 +00:00
Tomas Susanka
71a39bc0d7
legacy: check inputs' and outputs' script types
2020-03-20 14:19:30 +00:00
matejcik
ffdb299c61
all: drop Capricoin support [NO BACKPORT]
2020-03-20 14:19:30 +00:00
matejcik
adea7d6b35
all: make timestamp mandatory on timestamp-enabled coins
2020-03-20 14:19:07 +00:00
matejcik
ed464f3d47
all: ensure expiry, timestamp and extra_data are blocked as appropriate
2020-03-20 14:18:27 +00:00
matejcik
27803ee8c1
all: drop overwintered field from transaction
2020-03-20 14:18:27 +00:00
matejcik
303c05aba7
core/sign_tx: check if prev_tx has enough outputs to match prev_index
2020-03-20 14:17:44 +00:00
Tomas Susanka
1bf08cbb97
tests: add ui fixture for test_attack_change_input test
2020-03-20 14:17:44 +00:00
Andrew Kozlik
c98592050b
tests: Fix multisig input replacement attack to check correct behavior during the signing phase.
2020-03-20 14:17:44 +00:00
Tomas Susanka
350a67d9a7
tests: test multisig input replacement attack
2020-03-20 14:17:44 +00:00
Ondřej Vejpustek
bbb44405ad
tests/singing: mixed inputs in bitcoin gold
2020-03-20 14:17:44 +00:00
Tomas Susanka
8a0a38f948
tests/singing: mixed inputs
2020-03-20 14:17:44 +00:00
Tomas Susanka
f0a39df75d
core/wallet: check inputs and outputs right after receiving them
2020-03-20 14:17:44 +00:00
Tomas Susanka
a513f7429b
legacy: forbid unnecessary fields in OPRETURN output
2020-03-20 14:17:44 +00:00
Tomas Susanka
4af9aa547e
core: forbid unnecessary fields in OPRETURN output
2020-03-20 14:17:44 +00:00
Tomas Susanka
2ae8e16dd3
tests: add ui fixture for the previous test
2020-03-20 14:17:44 +00:00
Andrew Kozlik
d800fcbf9f
core/sign_tx: If there is a non-multisig input, then change output cannot be multisig.
...
(cherry picked from commit 8eb6ce0899
)
2020-03-20 14:17:44 +00:00
matejcik
a978435819
tests: update SD card test
2020-03-20 14:03:28 +01:00
Andrew Kozlik
8ee0026637
core: Allow PIN entry even when SD protect is enabled and the card is not present.
2020-03-19 15:04:33 +01:00
Andrew Kozlik
b2dc5813fe
legacy, tests: Check for invalid PIN.
2020-03-17 11:53:48 +01:00
Tomas Susanka
ad25096f90
tests: test reset device also with another strengths
2020-03-13 10:12:50 +00:00
matejcik
5b7d11e4ee
tests: remove explicit timeouts from test suite
2020-03-09 10:31:17 +01:00
Tomas Susanka
89929c7a8c
tests/ui: create report what differs from master
2020-03-04 13:41:32 +01:00
Tomas Susanka
f8de140271
core: add cancel to hold to confirm dialogs
2020-03-02 13:58:41 +00:00
Tomas Susanka
21676a0662
ore/tezos: better wording in delegation cancel
2020-03-02 08:49:34 +00:00
matejcik
7f91bc571c
core: ensure default task restarts after a passphrase workflow ( fixes #883 )
2020-02-28 15:55:40 +01:00
Tomas Susanka
a8af9feebe
core: fix text overflow in some dialogs
2020-02-27 12:43:33 +00:00
Tomas Susanka
744c32991f
core: unify sign/verify functions
...
The UI records are modified because of two changes:
- Added a coin name to the Sign/Verify screen (ETH/Lisk).
- Unified to use mono.
2020-02-27 12:43:33 +00:00
matejcik
6722215c66
tests: update SD-protect test after randomization change
2020-02-24 15:38:28 +01:00
matejcik
61fa00731a
tests: write UI report if tests fail
2020-02-24 15:38:02 +01:00
matejcik
d7b9582386
core/sdcard: add ensure_filesystem option ( fixes #868 )
...
It is possible to call `ensure_sdcard` in a way that requires only SD
card be inserted, but not necessarily formatted.
This is useful for SD-protect and possibly other use-cases where the SD
card is read-only, and "not formatted" is identical to "not containing
the right files".
2020-02-24 13:28:44 +01:00
matejcik
f9097b16e6
tests: make ui-check-missing more resilient for nonstandard exits
2020-02-24 13:28:44 +01:00
Tomas Susanka
703a13eb00
tests/ui: fix ui fixtures
2020-02-21 14:07:33 +00:00
matejcik
8fed67de08
tests: expand on multi-session tests
2020-02-21 14:40:42 +01:00
Tomas Susanka
6c47bf8230
core: store multiple sessions/caches at the same time
2020-02-21 14:40:42 +01:00
Pavol Rusnak
562671401e
Merge pull request #860 from trezor/prusnak/multisig-show-yours-others
...
core: show yours/others in get_address for multisig
2020-02-20 13:49:13 +01:00
matejcik
d88540f2e0
tests: do not error out when fixtures fail to download
2020-02-20 12:51:48 +01:00
matejcik
42c4eb6341
tests: add SD format test fixtures
2020-02-20 12:51:48 +01:00