matejcik
e37ce2b186
tests: change fw hashing test to work without fw dumping
2022-08-02 17:12:07 +02:00
Andrew Kozlik
8ca785925d
fix(core,legacy): Fix tx_weight to tx_size conversion.
...
[no changelog]
2022-08-02 14:30:38 +02:00
Andrew Kozlik
a4343266a3
fix(legacy): Fix Decred transaction weight calculation.
2022-08-01 15:10:34 +02:00
Andrew Kozlik
90792eb438
fix(core): Fix Decred transaction weight calculation.
2022-08-01 15:10:34 +02:00
Andrew Kozlik
3b44d44a12
fix(legacy): Fix rounding in fee rate computation.
2022-08-01 15:10:34 +02:00
gabrielkerekes
b9e2ca9a9d
chore(cardano): add changelog and update ui fixtures
2022-07-04 15:58:27 +02:00
gabrielkerekes
f2be6b9d91
chore(cardano): add show_details
tests
2022-07-04 15:58:27 +02:00
David Misiak
4017434cc1
feat(cardano): add support for babbage features
2022-07-04 15:58:27 +02:00
David Misiak
2724d29968
refactor(cardano): introduce Signer and its subclasses
2022-07-04 15:58:27 +02:00
grdddj
3a8e84a86e
fix(ci): make Connect tests run properly
2022-06-30 20:26:59 +02:00
matejcik
8c3d3c6548
chore: bump black to 22.3
...
changes:
* exponent operator ** now allows no spaces around itself: https://github.com/psf/black/issues/538
* optional unicode marker u"" is no longer allowed
[no changelog]
2022-06-29 14:35:16 +02:00
Martin Milata
c9ca7cd544
feat(core/rust/ui): bitcoin layouts
...
[no changelog]
2022-06-28 18:01:02 +02:00
Martin Milata
0112d0135a
ci(nix): update to latest nixpkgs-unstable
...
Uses new implementation of autoPatchelf which only works on directories.
2022-06-21 15:58:06 +02:00
Andrew Kozlik
c293d2f9eb
fix(tests): Fix Zcash v5 version group ID and branch ID in device test.
2022-06-06 17:03:15 +02:00
grdddj
9ca9720f22
feat(tests): add test for supporting older python versions
2022-05-30 14:41:32 +02:00
Pavol Rusnak
6589f020c6
fix(legacy,core): use sat/vB only for segwit and sat/B otherwise
...
[no changelog]
2022-05-30 10:51:47 +02:00
Martin Novak
a69e43d1a6
chore(tests): tests recording also generates "results web page"
2022-05-30 09:52:42 +02:00
Martin Milata
0388268b57
fix(tests): skip arm binaries during upgrade tests
2022-05-26 19:20:03 +02:00
Martin Novak
85f0d3a741
feat(core,legacy): show fee rate when signing transaction
2022-05-25 14:43:45 +02:00
Martin Milata
1e0fa3428c
ci: fix UI master diff
2022-05-25 10:35:22 +02:00
Martin Milata
c5f1bec474
Merge branch 'release/22.05'
2022-05-18 12:43:53 +02:00
Martin Milata
31e63f688e
fix(core/rust/ui): implement warning for PIN dialog
...
[no changelog]
2022-05-16 13:54:43 +02:00
Andrew Kozlik
903fa9b471
feat(legacy): Verify signatures of all original internal inputs in replacement transactions.
2022-05-03 23:00:25 +02:00
Andrew Kozlik
d16b44bad6
feat(core): Verify signatures of all original inputs in replacement transactions.
2022-05-03 22:14:40 +02:00
Andrew Kozlik
9bce153623
feat(core): Warn about unverified external inputs.
2022-05-03 22:14:40 +02:00
Andrew Kozlik
29304857b5
feat(legacy): Warn about unverified external inputs.
2022-05-03 22:14:40 +02:00
Andrew Kozlik
df479adbe7
chore(legacy): Simplify path warning UI.
...
[no changelog]
2022-05-03 22:14:40 +02:00
Andrew Kozlik
f6f865a513
fix(tests): Update T1 UI test fixtures.
2022-05-03 21:52:02 +02:00
Andrew Kozlik
e24e9fcdb3
fix(legacy): Check PIN before confirming critical dialogs.
2022-05-03 21:50:50 +02:00
Andrew Kozlik
b88e57a7c8
tests: Fix device tests for path checks in GetAddress.
2022-05-03 21:50:50 +02:00
Andrew Kozlik
88efd74710
feat(legacy): Make Bitcoin path checks same as in core.
2022-05-03 21:50:50 +02:00
matejcik
c9b521a8b0
tests: add test for firmware dumping and hashing
2022-05-03 19:00:04 +02:00
Andrew Kozlik
26d1fad2aa
feat(legacy): Support Zcash version 5 transaction format.
2022-05-02 17:10:41 +02:00
grdddj
c45ca3314c
chore(tests): add on-chain-valid test vectors for Zcash v5
2022-05-02 16:07:31 +02:00
Tomas Krnak
7739825cc6
test: add device tests for Zcash v5
2022-05-02 16:07:31 +02:00
Pavol Rusnak
8f1d33d5f9
build(core,legacy): remove gcc, use cc instead of gcc
...
for firmware builds we still use arm-none-eabi-gcc via $(PREFIX)gcc
[no changelog]
2022-04-27 15:48:14 +02:00
grdddj
cac27e2338
chore(tests): comment on no-longer-valid transaction links
2022-04-12 16:22:42 +02:00
grdddj
2cb2ba7f6a
chore(tests): create real taproot transactions
2022-04-12 16:22:42 +02:00
grdddj
e4a6608d1f
chore(tests): divide test BTC transactions between existing and unexisting
2022-04-12 16:22:42 +02:00
Ondřej Vejpustek
8356d0a572
fix(crypto): use zero auxiliary data in BIP340
2022-04-12 16:22:42 +02:00
Martin Milata
c153ffe4b3
ci: ui2 device tests
2022-04-07 17:58:41 +02:00
Martin Milata
1f612580f7
feat(core): enable UI tests for redesigned UI
...
[no changelog]
2022-04-07 17:58:41 +02:00
Martin Milata
28cd0d2606
test: mark test_show_multisig_xpubs as flaky
2022-03-31 13:50:29 +02:00
Martin Milata
0407e78e8c
ci: use autoPatchelfHook for emulators from pinned nixpkgs
2022-03-29 12:52:34 +02:00
matejcik
82182ae078
ci: use external servers in CI and scripts
2022-03-23 11:28:56 +01:00
David Misiak
915781bfb1
chore(cardano): update changelog and ui tests
2022-03-18 14:32:54 +01:00
David Misiak
2262602967
feat(cardano): add support for plutus transactions
2022-03-18 14:32:54 +01:00
David Misiak
48587d83fe
feat(cardano): add support for output datum hash and script data hash
2022-03-18 14:32:54 +01:00
David Misiak
2b3a53a6ae
feat(cardano): add support for network id in tx body
2022-03-18 14:32:54 +01:00
Andrew Kozlik
9e346b05da
chore(core): Don't check fairness of mining fees in CoinJoin.
...
[no changelog]
2022-03-17 15:46:01 +01:00
Andrew Kozlik
94d1a49eea
chore(core): Rework checking of CoinJoin parameters.
...
[no changelog]
2022-03-17 15:46:01 +01:00
Andrew Kozlik
556e8a147a
chore(core): Make CoinJoin checks more lenient.
...
[no changelog]
2022-03-17 15:46:01 +01:00
Andrew Kozlik
a4a51d02cc
feat(tests): Add device tests for unverified external inputs.
2022-03-17 09:44:03 +01:00
Andrew Kozlik
e108ba5bde
fix(tests): Tests fail earlier due to scriptPubKey check.
2022-03-17 09:44:03 +01:00
matejcik
0b9f7db742
fix(core): support structs as array elements ( fixes #2167 )
2022-03-10 13:04:54 +01:00
matejcik
4e2129e0a0
feat(core): automatically choose best QR encoding
2022-03-10 11:27:21 +01:00
matejcik
c3b28d8fb4
feat(tests): show QR codes in GetAddress test
2022-03-10 11:27:21 +01:00
grdddj
3b2a195cb2
fix(tests): change script running connect tests
2022-03-08 11:29:49 +01:00
grdddj
3e11e8bba2
chore(tests): update Bitcoin test cases to use valid prevtxes
2022-02-28 15:45:29 +01:00
matejcik
9d717b2085
refactor(tests): consolidate bitcoin.signtx helper module
2022-02-28 15:45:29 +01:00
matejcik
c6bcb64443
feat(tests): use python-bitcoinlib for parsing Bitcoin txes
2022-02-28 15:45:29 +01:00
matejcik
7e81eba810
chore(tests): generate T1 test fixtures
2022-02-17 11:05:55 +01:00
matejcik
5191d31737
chore(tests): rename fixtures for TT
2022-02-17 11:05:55 +01:00
grdddj
5b0be3273e
fix(tests): add mock urandom to T1 reset test
2022-02-17 11:05:55 +01:00
grdddj
9e654abdb3
feat(tests): prepare UI testing for T1
2022-02-17 11:05:55 +01:00
Andrew Kozlik
1ee443e8f8
feat(test): Device test for invalid Taproot addresses.
2022-02-16 10:25:15 +01:00
Andrew Kozlik
b5c9f573b2
feat(legacy): Show "signature is valid" dialog when VerifyMessage succeeds.
2022-02-11 15:36:00 +01:00
Andrew Kozlik
d52a59e37b
feat(core): Show "signature is valid" dialog when VerifyMessage succeeds.
2022-02-11 15:36:00 +01:00
Andrew Kozlik
4d40d6dbfc
feat(core): Support Electrum signatures in VerifyMessage.
2022-02-11 15:36:00 +01:00
Andrew Kozlik
473657fd44
chore(core): Tweak validation of pre-authorized GetOwnershipProof.
...
In pre-authorized GetOwnershipProof requests ensure that the commitment data
starts with a length-prefixed name of the CoinJoin coordinator.
[no changelog]
2022-02-11 13:56:27 +01:00
matejcik
abc593d19a
tests: drop skip_ui support
2022-02-08 16:34:54 +01:00
matejcik
a1c62098e9
fix(core/ethereum): implement hold-to-confirm for eip1559 transactions
2022-02-08 14:27:23 +01:00
grdddj
9a71ac74c9
chore(tests): add type hints and improve styling in device test files
2022-02-07 14:05:27 +01:00
grdddj
697cb6448c
chore(tests): add type hints to some non-device tests
2022-02-07 14:05:27 +01:00
grdddj
c77e18d77c
chore(tests): add type hints to helper test functions
2022-02-07 14:05:27 +01:00
grdddj
5d76144ef5
chore(common): always use resolve() when accessing parent of the Path
...
[no changelog]
2022-02-07 14:05:27 +01:00
Andrew Kozlik
a5824ed1ff
feat(tests): Test payment request details.
2022-01-31 18:00:22 +01:00
Andrew Kozlik
90c32e0a2f
feat(tests): Add address MAC device tests.
2022-01-31 18:00:22 +01:00
Andrew Kozlik
c9008c7766
feat(tests): Add payment request device tests.
2022-01-31 18:00:22 +01:00
Andrew Kozlik
e5281b87b5
chore(tests): Add payment requests to test_msg_authorize_coinjoin device test.
2022-01-31 18:00:22 +01:00
grdddj
ee34b5ba08
chore(tests): using real transactions in bitcoin/test_signtx.py
2022-01-27 15:07:30 +01:00
grdddj
e1d4e40785
feat(tests): adding assert_tx_matches() to common.py
2022-01-27 15:07:30 +01:00
grdddj
9cf5fd351a
chore(tests): adding type hints to helper functions used in sign_tx tests
2022-01-27 15:07:30 +01:00
grdddj
3536d86fa9
fix(tests): using press_info instead of click for info buttons
2022-01-27 13:15:04 +01:00
Andrew Kozlik
ba4f046d6f
feat(common): Add INFO button to DebugLinkDecision.
...
[no changelog]
2022-01-27 13:15:04 +01:00
grdddj
e4b5f10223
feat(tests): clicking Info button in (Super)Shamir backup device tests
2022-01-17 12:33:24 +01:00
Alois Klink
5c4703c9bb
fix(core,legacy): Fix domain-only ethTypedData
...
When doing Ethereum signTypedData, and the primaryType="EIP712Domain",
we completely ignore the "message" part and only sign the domain.
According to the community, this is technically allowed by the spec,
and may be used by ETH smart contracts to save on gas.
Test case generated by @MetaMask/eth-sig-util's library.
See: https://ethereum-magicians.org/t/eip-712-standards-clarification-primarytype-as-domaintype/3286
2022-01-14 14:22:46 +01:00
matejcik
b2136e35d4
style(tests): remove class from taproot test
2022-01-13 13:01:17 +01:00
grdddj
8bcd52fc1b
chore(tests): unifying NEM T1 and TT device tests
2022-01-12 14:53:20 +01:00
Andrew Kozlik
44c184061e
fix(tests): Fix signatures in ownership proofs.
2022-01-10 11:14:36 +01:00
FujiCoin
33c243be8d
feat(common): enable taproot for Fujicoin, fix xpub versions
...
* fix fujicoin params
* add test_fujicoin/test_send_p2tr
* fix test
* fix serialized_tx.hex()
* Recreated based on a new transaction
* make gen, some fixes
Co-authored-by: matejcik <ja@matejcik.cz>
2022-01-05 12:43:34 +01:00
matejcik
33b23ea6a0
fix(tests): show addresses in test_show_segwit
2021-12-21 19:39:57 +01:00
matejcik
f0f950d484
fix(tests): add correct test case for GRS taproot
2021-12-21 19:39:57 +01:00
gruve-p
3ab036a1d1
feat(common): enable Taproot on Groestlcoin
...
Add additional device tests for GRS
Add P2TR GetAddress for GRS mainnet and testnet
Add SignTX spending taproot UTXO (The resulting transaction from the SignTx device test was successfully mined on Testnet.)
2021-12-20 22:49:36 +01:00
matejcik
d2ac4e7a9c
feat(tests): add tests for blind EIP-712 signing
...
Co-authored-by: Martin Milata <martin@martinmilata.cz>
Co-authored-by: grdddj <jiri.musil06@seznam.cz>
2021-12-19 20:36:30 +01:00
Martin Milata
bfe5b6a272
test(core): make sure path check fails immediately
2021-12-16 14:15:39 +01:00
grdddj
3ed92a72bb
feat(ci): running connect tests against current branch
2021-12-10 14:18:21 +01:00
Martin Milata
86b02c6c06
tests(core): remove fixtures incorrectly added during merge
2021-12-08 21:01:08 +01:00
Pavol Rusnak
0c57614436
style(tests): make linters happy
2021-12-08 17:06:37 +01:00
Martin Milata
ff5f965c44
Merge branch 'release/21.12'
...
Conflicts:
tests/device_tests/test_msg_signtx_invalid_path.py
tests/ui_tests/fixtures.json
2021-12-08 14:53:56 +01:00
matejcik
a4bcc95deb
feat(python): introduce Trezor models
...
This keeps information about vendors and USB IDs in one place, and
allows us to extend with model-specific information later.
By default, this should be backwards-compatible -- TrezorClient can
optionally accept model information, and if not, it will try to guess
based on Features.
It is possible to specify which models to look for in transport
enumeration. Bridge and UDP transports ignore the parameter, because
they can't know what model is on the other side.
supersedes #1448 and #1449
2021-12-07 16:55:58 +01:00
matejcik
a2a8cc88d9
feat(python): make the protobuf mappings overridable
2021-12-07 16:55:58 +01:00
matejcik
be6d01729d
fix(tests): TxCache needs to respond to x in tx_cache
2021-12-07 16:55:58 +01:00
Andrew Kozlik
7b7aa2d971
feat(tests): Add device tests for Taproot ownership proofs.
2021-12-06 18:23:48 +01:00
Andrew Kozlik
b0f2d43884
tests: Fix tx_cache download.
2021-12-06 18:23:48 +01:00
grdddj
9ef4440d0a
chore(tests): regenerating fixtures.json to account for changed file-paths
2021-12-06 11:15:12 +01:00
grdddj
0b0a77703c
chore(tests): more test reorganizations
2021-12-06 11:15:12 +01:00
grdddj
18a2642d95
chore(tests): renaming all "proto" usages to "messages" in device tests
2021-12-06 11:15:12 +01:00
grdddj
a92d29ddbf
chore(tests): removing classes from device test files
2021-12-06 11:15:12 +01:00
grdddj
782f868717
chore(tests): organize device tests into folders
2021-12-06 11:15:12 +01:00
grdddj
6c8e6dcc08
feat(tests): SuperShamir device tests for clicking Info button
2021-12-06 11:15:12 +01:00
Andrew Kozlik
de6fab3c1e
feat(tests): Test SegWit cross-coin attack.
2021-11-23 14:57:25 +01:00
Andrew Kozlik
9052133fca
fix(core): Ensure user is warned about non-standard paths.
2021-11-23 14:57:25 +01:00
Andrew Kozlik
e30ccabed3
feat(legacy): Show path warning for SignMessage.
2021-11-18 22:39:32 +01:00
Andrew Kozlik
10717ddb99
feat(tests): Add invalid signature test for RBF in P2TR.
2021-11-18 22:39:32 +01:00
Andrew Kozlik
fa4d74ad30
feat(legacy): Support Taproot signature verification.
2021-11-18 22:39:32 +01:00
Andrew Kozlik
c9d1ff93f5
feat(legacy): Implement Taproot signing.
2021-11-18 22:39:32 +01:00
Andrew Kozlik
6fbbd14f8c
refactor(legacy): Refactor compile_input_script_sig().
2021-11-18 22:39:32 +01:00
Andrew Kozlik
9a051df127
chore(legacy): Support script_pubkey parameter for Bitcoin inputs.
2021-11-18 22:39:32 +01:00
Andrew Kozlik
6c9c727359
feat(legacy): Implement GetAddress for taproot.
2021-11-18 22:39:32 +01:00
Andrew Kozlik
03b1b3bc6b
feat(core): Show path warning for SignMessage.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
e559c5688b
feat(tests): Test fake Taproot transaction attack.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
93c02e2616
feat(tests): Add device test for external presigned Taproot input.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
5837750aaa
feat(tests): Add fee bump device test for Taproot.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
f0d6e961a9
feat(tests): Add tests for spending Taproot UTXOs.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
554888ef84
fix(tests): Fix UI tests which fail earlier due to scriptPubKey derivation.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
ed9d3e3e9b
fix(tests): Add script_pubkey field to external inputs.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
390bcf4612
feat(tests): Add BIP86 test vectors for get_address().
2021-11-13 13:33:46 +01:00
Pavol Rusnak
7091417c5d
feat(tests): add taproot cases to test_msg_getaddress_segwit_native
2021-11-13 13:33:46 +01:00
Andrew Kozlik
bec0634bae
feat(core): Improve message signing UI.
...
- Add "Confirm message" subheader to SignMessage and VerifyMessage.
- Unify font for SignMessage and VerifyMessage to fixed-width font.
- Fix device tests.
2021-11-10 17:35:57 +01:00
Andrew Kozlik
39a0901e99
fix(tests): Fix SignMessage tests after adding address dialog.
2021-11-10 17:35:57 +01:00
Andrew Kozlik
9a7990d087
feat(tests): Add no_script_type device tests for SignMessage.
2021-11-10 17:35:57 +01:00
matejcik
2c20016cfa
tests: add tests for different Cardano derivations
2021-11-10 13:57:57 +01:00
matejcik
f0ae16069c
fix(core): do not send passphrase_protection field when device is locked ( fixes #1807 )
2021-11-10 13:57:57 +01:00
matejcik
0e4e56711c
fix(tests): enable derive_cardano for Cardano test cases
2021-11-10 13:57:57 +01:00
Jun Luo
62b649ef5d
refactor(common & core & legacy): Stellar, rename StellarCreatePassiveOfferOp to StellarCreatePassiveSellOfferOp.
2021-11-04 13:16:29 +01:00
Jun Luo
d064aae3f9
feat(common & core & legacy): Stellar, add support for StellarPathPaymentStrictSendOp.
2021-11-04 13:16:29 +01:00
Jun Luo
1dcb8e4913
feat(common & core & legacy): Stellar, add support for StellarManageBuyOfferOp.
2021-11-04 13:16:29 +01:00
Jun Luo
3a5768c4bf
refactor(common & core & legacy): Stellar, rename StellarManageOfferOp to StellarManageSellOfferOp and rename StellarPathPaymentOp to StellarPathPaymentStrictReceiveOp.
2021-11-04 13:16:29 +01:00
Pavol Rusnak
0068c12f77
fix(python): use unified descriptor format <a;b> ( #1885 )
2021-11-04 10:36:53 +01:00
grdddj
73238135d6
feat(core/ethereum): EIP-712
...
Based on original contribution by Max Kupriianov <xlab@hey.com>
Implemented EIP-712 typed data signatures in Ethereum app.
Add eth_abi into pyproject deps
device test for EIP 712
fixed hex decoding for address
fixup! fixed hex decoding for address
code quality, more pythonic code, removing unused imports
running black and isort on changed files
trezorctl file input for EIP 712 data signing
fixup! code quality, more pythonic code, removing unused imports
fixup! fixup! code quality, more pythonic code, removing unused imports
necessary changes after rebase to master
unit tests for sign_typed_data.py
new protobuf messages, working for nonarray types
simplified and verified solution for our simple data
support for simple arrays, without their confirmation
reverting protobuf value messages to bytes, appropriate changes
showing arrays in Trezor, code quality improvements
data validation on Trezor, minor improvements
using custom types for storing type data instead of dicts, addressing feedback from review
moving helper functions to its own file, tests for decode_data
additional overall tests
support for arrays of structs
adding support for metamask_v4_compat variable
using HashWriter object to collect the final hash continously
minor improvements in code quality
validate_field_type function
streaming values from client without saving them, missing UI
prototype of streamed UI using confirm_properties
accounting for bytes in data, more data types in integration tests
rebase on master, using f-strings
minor fixes and improvements from code review
StructHasher class for the whole hashing process
mypy and style changes
asking users whether to show structs and arrays
protobuf descriptions to fix make defs_check
unifying comments, mypy fix
unit tests for StructHasher class
UI fixtures, skipping device tests for T1
addressing majority of code review comments about code quality and structure
changing file structure - layouts, helpers, sign_typed_data
decode_data renaming and docstring, renaming unit test file
using tuples instead of lists in elifs
layout improvements
excluding core/src/apps/common/confirm.py file from the PR
True/False returning layout with Show more button
code review layout improvements
forgotten br_type argument to should_show_more
2021-11-02 14:27:01 +01:00
matejcik
0e6669bd10
feat(core/stellar): show start/end timestamps in human readable format
2021-10-29 11:00:30 +02:00
matejcik
f7c340f333
feat(core/bitcoin): show lock_time as human readable datetime
2021-10-29 11:00:30 +02:00
matejcik
e972839ac7
style(all): fix pylint complaints
...
[no changelog]
2021-10-27 13:13:15 +02:00
Martin Milata
fa3c6140a6
feat(legacy/ethereum): support access lists in EIP-1559 transactions
2021-10-26 17:20:20 +02:00
Martin Milata
076c5b9cbe
feat(legacy/ethereum): support for EIP-1559 transactions
2021-10-26 17:20:20 +02:00
Martin Milata
3882b89be9
fix(core/ethereum): ask before showing paginated data field
2021-10-19 17:13:28 +02:00
David Misiak
13c4fb97df
fix(cardano): forbid multisig pool registration [no changelog]
2021-10-19 15:25:39 +02:00
Andrew Kozlik
dfd98c5164
feat(tests): Test send to taproot.
2021-10-18 13:36:05 +02:00
Pavol Rusnak
27dcef056f
feat(tests): add tests for Taproot descriptors support
2021-10-18 13:36:05 +02:00
matejcik
b6837d19b7
fix(core/nem): fix NEM usage of format_amount
...
[no changelog]
2021-10-13 11:53:17 +02:00
amadejpapez
85ba7c12ba
style(all): use f-strings for formatting
...
[no changelog]
2021-10-13 11:53:17 +02:00
gabrielkerekes
b957dfbddb
chore(cardano): improve get_native_script_hash tests and update ui fixtures
2021-10-11 15:16:24 +02:00
gabrielkerekes
4aaf6db9a2
chore(cardano): update docs, changelog and ui test fixtures
2021-10-11 15:16:24 +02:00
gabrielkerekes
1f33ab420d
feat(cardano): update transaction signing for multisig
2021-10-11 15:16:24 +02:00
gabrielkerekes
21281d7cf4
feat(cardano): add support for script addresses derivation
2021-10-11 15:16:24 +02:00
gabrielkerekes
dd9652cd07
feat(cardano): add get-native-script-hash call
2021-10-11 15:16:24 +02:00
matejcik
f484c42d41
refactor(tests): use common Stellar fixtures in tests
...
All test cases are generated and verified in Stellar Laboratory.
Source XDR is also tested to match the vectors, and it is easy to verify
in Laboratory directly.
2021-09-24 10:30:19 +02:00
matejcik
98f0496b2c
feat(core/stellar): add type checking to Stellar app
2021-09-24 10:30:19 +02:00
Pavol Rusnak
169c472172
refactor(tests): modernize test_msg_getaddress_segwit_native
2021-09-23 16:17:58 +02:00
matejcik
9dd97c77e3
fix(tests): update prevhash test
...
exclude the None value, because prev_hash is now required on protobuf
level
unify the parametrization across tests
2021-09-21 12:43:31 +02:00
grdddj
1a291660e5
chore(tests): improving consistency of ethereum fixtures
2021-09-20 13:04:56 +02:00
grdddj
23ce8a46f3
feat(tests): PIN and protection_levels tests for TT
2021-09-17 11:13:25 +02:00
grdddj
6b3c9d5a6b
chore(tests): using setup_client for setting the passphrase in device tests where applicable
2021-09-17 11:13:25 +02:00
grdddj
1b932a20e8
fix(tests): decoding PNG files to fix Linux/Mac differences in encoding
2021-09-14 14:21:38 +02:00
matejcik
ae4dd42d18
refactor(core/ethereum): reorganize sanity checks, disallow chain_id 0
2021-09-10 15:09:03 +02:00
matejcik
8931450d21
chore(common): enable Palm network
2021-09-10 15:09:03 +02:00
matejcik
a1c3d8b7a5
chore(tests): regenerate UI test fixtures
2021-09-10 15:09:03 +02:00
matejcik
30b08d949b
feat(common): add default values to EthereumSignTx fields
...
so that we can avoid Optional types for fields
2021-09-10 15:09:03 +02:00
matejcik
639406b01f
feat(all): make chain_id mandatory
2021-09-10 15:09:03 +02:00
grdddj
6f1005b155
chore(tests): vectorizing and creating JSON fixtures for ethereum device tests
2021-09-02 10:28:26 +02:00
matejcik
7aed8d535d
feat(all): re-enable Firo ( fixes #1767 )
2021-08-23 11:43:57 +02:00
gabrielkerekes
0bff220fd6
chore(cardano): update ui test fixtures
2021-08-20 11:50:13 +02:00
gabrielkerekes
500d29f43b
chore(cardano): format test fixture files
2021-08-20 11:50:13 +02:00
gabrielkerekes
28f0f60295
feat(cardano): update tests for streamed tx signing
2021-08-20 11:50:13 +02:00
matejcik
d66cca4069
chore(tests): remove Lisk
2021-08-19 10:25:41 +02:00
Frederik Bolding
38fa9197ca
feat(core,python): support for Ethereum EIP1559 transactions
...
Initial EIP1559 implementation
Fix a few small issues
Progress on Python lib implementation and firmware
Fix RLP length
Start fixing tests
Fix legacy transactions
Simplify API and logic
Add EIP1559 tests
Fix access list formatting
Fix UI visiblity issue
Fix commented out code
fix: correct linting issues
Fix access_list protobuf formatting
Remove unneeded code
Remove dead code
Check tx_type bounds for EIP 2718
Reduce code duplication
Prefer eip2718_type over re-using tx_type
Add more tests
Simplify format_access_list
Simplify sign_tx slightly
Change Access List format and add logic to encode it
Fix a bunch of small PR comments
Fix a linting issue
Move tests out of class and regenerate
Remove copy-pasted comments
Add access list to CLI
Simplify _parse_access_list_item
Fix small mistakes following rebase
Fix linting
Refactor to use a separate message for EIP 1559 tx
Simplify changed legacy code
Fix a few small PR comments
Fix linting
fix(legacy): recognize SignTxEIP1559 on legacy build
Fix PR comments
2021-08-10 11:00:29 +02:00
Martin Milata
b5710b820a
docs(core): replace Purpose48 with BIP-48
...
https://github.com/bitcoin/bips/blob/master/bip-0048.mediawiki
2021-08-06 12:50:42 +02:00
matejcik
f78363ecdc
refactor(core/ui): do not use parameter for styling in get_next_u2f_counter
2021-08-04 15:03:11 +02:00
Martin Milata
574dcbc8a3
refactor(core): convert apps.common to layouts
2021-08-04 15:03:11 +02:00
Martin Milata
875cc0cb1a
refactor(core): convert apps.webauthn to layouts
2021-08-04 15:03:11 +02:00
matejcik
7e0e24430c
feat(tests): reuse same client instance across test session
...
Makes skipping tests much faster, and running individual tests a tiny
bit faster.
Also makes sure the whole suite always runs against the same device
(modulo emulator being restarted)
2021-08-04 10:58:59 +02:00
matejcik
b3312d1ef7
fix(tests): set_filter must be used in with-block
...
This makes sure filters are properly cleared when the with-block exits
2021-08-04 10:58:59 +02:00
matejcik
45d377f5b8
chore(tests): drop unused debug pieces
2021-08-04 10:58:59 +02:00
matejcik
0e14291094
chore(tests): regenerate UI test fixtures
2021-07-26 14:48:35 +02:00
matejcik
f3802dea61
fix(tests/ui_tests): if a UI test result changed, show it as new
2021-07-26 14:48:35 +02:00
matejcik
2b3c75c4de
fix(core): properly respond to USB events while on a paginated screen
2021-07-20 12:59:26 +02:00
Andrew Kozlik
24bb401638
fix(legacy,core): Fix operation source account encoding in Stellar.
2021-07-13 17:24:16 +02:00
matejcik
46e0530764
fix(tests): auto-swipe by using only ButtonRequest.pages
...
(cherry picked from commit f8bb90366a
)
2021-07-12 00:39:58 +02:00
Andrew Kozlik
e3faece811
fix(tests): Fix device tests after having disabled testnet for BIP-45 paths.
2021-06-30 18:25:58 +02:00
Andrew Kozlik
9b0e980c44
fix(legacy): Don't allow unknown paths in GetAddress.
2021-06-30 18:25:58 +02:00
Andrew Kozlik
a6390e4b82
fix(legacy): Allow known non-standard paths in GetAddress and SignTx.
2021-06-30 18:25:58 +02:00
matejcik
2491f871aa
chore(tests): add fixture for new Cardano test
2021-06-24 14:37:48 +02:00
matejcik
319a4374d3
chore(tests): regenerate UI test fixtures
2021-06-23 11:51:18 +02:00
matejcik
57582c2501
feat(tests): simple javascript-based UI diff review tool
2021-06-23 11:51:18 +02:00
matejcik
1b7b06255a
feat(tests): only try connecting to VPN once
2021-06-23 11:51:18 +02:00
matejcik
0971adf7a7
feat(tests): generate UI test report again from current data
2021-06-23 11:51:18 +02:00
Martin Milata
178b575465
refactor(core): convert apps.nem to layouts
2021-06-23 11:51:18 +02:00
Martin Milata
dd3b689ded
refactor(core): convert apps.eos to layouts
2021-06-23 11:51:18 +02:00
Martin Milata
3ffbae5d17
refactor(core): convert apps.binance to layouts
2021-06-23 11:51:18 +02:00
Martin Milata
ddac852acf
refactor(core): convert apps.cardano to layouts
2021-06-23 11:51:18 +02:00
Martin Milata
d33c61bbe7
test(core): enable ui tests for cardano get_address
2021-06-23 11:51:18 +02:00
Martin Milata
12478b1716
refactor(core): convert apps.stellar to layouts
2021-06-23 11:51:18 +02:00
Martin Milata
16094df0c5
refactor(core): convert most of apps.monero to layouts
...
Progress popups are not ported yet as they're unlike anything else.
Introduces paginate_paragraphs.
2021-06-23 11:51:18 +02:00
Martin Milata
b7cab90e3c
refactor(core/ui): use new_lines=False in layouts
2021-06-23 11:51:18 +02:00
matejcik
f39abc8356
chore(tests): update UI test fixtures
2021-06-22 11:25:12 +02:00
matejcik
7cdde940af
chore(tests): adapt device tests to paging information ButtonRequests
2021-06-22 11:25:12 +02:00
Martin Milata
fddac0434b
test: add device tests for non-standard paths
2021-06-17 13:53:35 +02:00
Andrew Kozlik
e15406f712
test: Add device test for signing an empty message in Decred which uses the BLAKE hash function.
2021-06-11 20:22:42 +02:00
gabrielkerekes
8a3549dbf8
chore(tests): update ui_tests fixtures
2021-06-08 15:02:24 +02:00
matejcik
e952a301d6
fix(tests): properly include tests whose expected hash is missing
2021-06-08 09:55:19 +02:00
matejcik
b1ec73e10b
chore(tests): put enum names into UI fixture names (hashes are unchanged)
2021-06-08 09:55:19 +02:00
matejcik
a58823cc0c
refactor(python): rework trezorlib protobuf codec
...
API-compatibility with the original one is retained.
Now that we don't need to keep code parity with core, we could do some
changes that make life easier.
All generated classes are now in one file. This makes github diffs more
readable, at the cost of somewhat complicating inspecting individual
classes; however, that is something we shouldn't be doing anyway.
Enums are now implemented as enum.IntEnum.
The original class-level FIELDS member was restored.
Each field is now defined via protobuf.Field, which is easier to work
with in the codec, AND we're not stuffing defaults and flags into the
same field.
2021-06-08 09:55:19 +02:00
matejcik
729414e606
fix(core): exclude get/set U2F counter from BITCOIN_ONLY
2021-06-08 09:55:19 +02:00
Jan Pochyla
e5e3ad21b2
fix(tests): Adjust the expected error message
2021-06-08 09:55:19 +02:00
matejcik
86089fa5ad
feat(core): avoid restarting session for select messages ( fixes #1631 )
2021-06-01 14:07:29 +02:00
Andrew Kozlik
7f2f32ff8a
test(device): Test safety checks on T1.
2021-05-24 17:47:43 +02:00
matejcik
2ae8e954bf
chore(tests): update UI test fixtures
2021-05-06 13:14:21 +02:00
matejcik
c233b796df
fix(tests): avoid race condition when generating UI test screenshots
2021-05-06 13:14:21 +02:00
matejcik
96fd347ca8
fix(core): keep value of experimental_features cached across workflow restarts
2021-05-06 13:14:21 +02:00
matejcik
e5a481ded5
chore(tests): fix deprecation warnings
2021-05-06 13:14:21 +02:00
gabrielkerekes
a3d0016a2f
refactor(trezorlib/cardano): rename create_* functions
...
To avoid ambiguity between creating messages from parameters and parsing them from JSON.
2021-04-23 11:09:29 +02:00
gabrielkerekes
2313293477
feat(core/cardano): add support for catalyst voting registration
2021-04-23 11:09:29 +02:00
Martin Milata
b1e38fe382
refactor(core): no implicit spaces in render_text
2021-03-30 22:34:01 +02:00
Martin Milata
6668921a4f
refactor(core): convert apps.common.request_pin to layouts
2021-03-30 22:34:01 +02:00
Martin Milata
ffe6d65f72
refactor(core): convert parts of apps.management to layouts
2021-03-30 22:34:01 +02:00
Rafael Korbas
a9b8b0e119
feat(core/cardano): chunked serialization of signed transaction
2021-03-26 11:15:19 +01:00
Andrew Kozlik
151592c6a3
test: Add upgrade test with enabled wipe code for legacy.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
9bd4465fbf
test: Add test for progressive storage version upgrades without unlocking in between.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
aaa1ea6352
test: Add upgrade test with enabled PIN for legacy.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
602761694f
test: Use long PIN values in device tests.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
7436fd06b9
test: Add device test for replacement transaction with OP_RETURN output.
2021-03-24 22:06:41 +01:00
Rafael Korbas
74ed5b7018
feat(core/cardano): Implement bech32 asset ids based on CIP-0014
2021-03-18 09:53:33 +01:00
Rafael Korbas
bd4512b53a
fix(core/cardano): Allow stake pool registrations with zero margin
2021-03-18 09:35:08 +01:00
Andrew Kozlik
28918f46ec
test: Add device test for decreasing output amount in RBF.
2021-03-17 15:15:50 +01:00
JoeGruff
e3ea32a986
multi: Add decred staking.
...
Add two new input and four output script types.
Decred ticket purchases consist of a stake submission, op returns, and
change addresses. Although change addresses are allowed by consensus,
they are no longer used in practice and so have been given the
restrictions of a null pubkey and no value. Stake scripts are almost
identical to p2pkh or p2sh except for an extra opcode in front. Inputs
are currently only used in the form of one input three outputs with the
first output, or stake submission, paying to a public key hash, or with
two inputs and five outputs with the stake submission paying to a
multisig script hash. The op returns are directed to the user in the
case of one and the voting service provider and user in the case of two.
One of the sstx commitment for a ticket must pay back to the trezor
wallet. This is checked and an error is thrown if we don't find the
expected public key hash.
Because this adds the ability to create new types of outputs once the
ticket votes, two new input script types are also needed. A successful
vote will lead to a stake generation script that must be spent, and an
unsuccessful vote will lead to a revocation script that must be spent.
If we allowed stake change scripts to have a valid pubkey, that too
would require another op code, but we disallow those for output.
2021-03-17 12:16:08 +01:00
Roman Zeyde
7ce4e13bcf
feat(core): add public_key to ECDHSessionKey
2021-03-08 15:59:00 +01:00
Rafael Korbas
ceea21ec1f
feat(cardano): Format stake pool ids as bech32 instead of hex
2021-02-25 16:49:19 +01:00
Rafael Korbas
cf871ee754
fix(core/Cardano): do not show change output in byron-shelley transfers
2021-02-25 16:41:12 +01:00
Martin Milata
192d0dcf87
feat(core): hold homescreen to lock
2021-02-24 00:10:10 +01:00
Martin Milata
854a256b5a
test: wait longer for autolock
...
To reduce test failure probability.
2021-02-23 14:31:04 +01:00
Andrew Kozlik
8828fa76d3
test: Ensure that GetAddress and GetOwnershipId fail for multisig if user's public key is not included.
...
(cherry picked from commit e9c227f623
)
2021-02-11 10:26:44 +01:00
gabrielkerekes
d4dcd7bff9
fix(core/cardano): allow staking accounts beyond 100'
2021-02-11 09:55:23 +01:00
Martin Milata
f38abf9d89
refactor(core): introduce layouts
...
Layouts can be used by the application code to interact with user using
small number of dialogs or other groups of UI components. Each layout is
identified by name and takes some parameters. Most layouts will have an
implementation for each hardware model, mechanism is provided to import
the correct version so that application code can be oblivious to the
model.
This commit introduces the layout concept and converts a couple of
dialogs to use it.
2021-02-10 13:57:19 +01:00
matejcik
d475248ef1
tests: use modified protobuf classes correctly
2021-02-10 10:56:52 +01:00
Pavol Rusnak
48d1a7a880
fix(python): append checksum to descriptors ( #1445 )
2021-02-05 17:46:02 +01:00
matejcik
a1cd0b0949
fix(tests): update shamir_mnemonic usage
2021-02-05 10:44:09 +01:00
matejcik
cdf55d2fac
tests: get rid of skip_ui ( fixes #1409 )
2021-02-05 10:44:09 +01:00
Rafael Korbas
e4c406822c
Add multiasset sending and min validity to Cardano transactions
2021-01-27 18:26:40 +01:00
Andrew Kozlik
79fad70b05
fix: Improve wording when showing multisig XPUBS.
2021-01-26 15:09:37 +01:00
Rafael Korbas
44c7d23741
Cardano: map account paths to account numbers
2021-01-22 14:45:29 +01:00
Pavol Rusnak
be2ca4772c
tests: add device tests for SignTx with amount_unit
2021-01-22 14:07:36 +01:00
Pavol Rusnak
7f0e939359
feat(core): implement amount_unit for AuthorizeCoinJoin and SignTx
2021-01-22 14:07:36 +01:00
Pavol Rusnak
2d4b91b52a
tests: adapt test_msg_getaddress_show to test GetAddress.ignore_xpub_magic
2021-01-21 23:46:29 +01:00
matejcik
02881fd800
feat(tests): use JSON descriptions in test identifiers
2021-01-21 15:26:04 +01:00
Pavol Rusnak
060df07272
fix(tests): fix trimming of fixture names to avoid collisions
2021-01-20 14:09:27 +01:00
matejcik
fc4e15fe77
feat(core): introduce and enforce limit on label length ( fixes #1399 )
2021-01-12 11:22:58 +01:00
matejcik
24195d7c3e
fix(core/ui): use full line_width for content
2021-01-11 16:47:59 +01:00
matejcik
6fbf93cab8
chore(tests): update UI fixtures as needed
2021-01-11 16:47:59 +01:00
matejcik
718d589acc
feat(tests): dump UI test report as you go
2021-01-11 16:47:59 +01:00
matejcik
fd502f122f
feat(core): implement pagination for sign/verify
2021-01-11 16:47:59 +01:00
Pavol Rusnak
7b9f3c0462
feat(tests): add device tests for btc.get_descriptor
2021-01-08 14:17:09 +01:00
Pavol Rusnak
5e58835d18
feat(tests): test GetPublicKey.ignore_xpub_magic behaviour
2021-01-08 14:17:09 +01:00
Andrew Kozlik
97974c8d5b
chore(tests): Use strings instead of integers for script_type in tx_cache.
2020-12-22 17:10:33 +01:00
Andrew Kozlik
3be0138aae
test: Add device test for replacement transaction with invalid original signature.
2020-12-17 16:33:33 +01:00
Andrew Kozlik
9ab4efdbad
test: Enable and tweak RBF device tests for T1.
2020-12-17 16:33:33 +01:00
Martin Milata
8fd12f4373
fix(tests): run test_softlock_instability on emulator only
2020-12-01 12:35:11 +01:00
Tomas Susanka
bd0b91a229
fix(tests): fix extra ETH unknown token dialog for T1
2020-11-20 18:55:35 +01:00
matejcik
f83752a714
fix(tests): remove dropped EOSClassic test case
2020-11-20 18:55:35 +01:00
matejcik
4628c774aa
feat(core): re-allow unknown Ethereum networks, using Ethereum or Testnet paths ( fixes #1335 )
2020-11-20 18:55:35 +01:00
matejcik
7abe70e484
feat(core): improve ethereum tokens ui ( fixes #800 )
2020-11-20 18:55:35 +01:00
Rafael Korbas
b311bd4d4a
Add displaying of TTL to cardano transaction, align url validation with Ledger
2020-11-20 15:58:50 +01:00
Rafael Korbas
b261f789f3
Add support for stakepool registration to Cardano
2020-11-20 15:58:50 +01:00
Andrew Kozlik
65a9636bb5
test: Add device test for RBF finalization.
2020-11-20 13:52:48 +01:00
Pavol Rusnak
50fdd183c2
ci: enable editorconfig checks, fix whitespace issues
2020-11-11 14:43:50 +01:00
matejcik
37d3bf56fa
fix(core): make sure run-time settings are reset after wipe ( fixes #1322 )
2020-11-05 15:33:38 +01:00
matejcik
b8e654d8e5
chore(tests): regenerate ui test fixtures
2020-11-05 14:30:11 +01:00
matejcik
f10084117b
feat(core/bitcoin): do not show path warning when GetAddress is called silently ( fixes #1206 )
2020-11-05 14:30:11 +01:00
matejcik
f3b6de399a
fix(tests): fix illegal paths in device tests
2020-11-05 14:30:11 +01:00
matejcik
a36ccd7e6f
feat!(python): drop Mapping protocol support from MessageType
2020-10-30 10:25:51 +01:00
Andrew Kozlik
70975008cd
chore (core): In apps.bitcoin skip confirmation of fee in PayJoin if the user is not increasing their contribution.
2020-10-23 15:07:15 +02:00
Andrew Kozlik
2a19d70e98
test: Add device tests for replacement transaction flow.
2020-10-23 15:07:15 +02:00
Martin Milata
830592f2d9
feat(core): add experimental_features setting
...
The setting is off by default. When it is enabled protobuf messages
marked UNSTABLE are rejected after decoding.
2020-10-16 13:53:31 +02:00
Tomas Susanka
99e0faafb6
test(core): print fixtures suggestion after the test
2020-10-06 21:17:28 +02:00
Martin Milata
542f32d3b1
feat(core): add auto_lock_delay and display_rotation to Features
2020-10-02 11:06:16 +02:00
matejcik
e4785d47e0
style: apply black 20.8b1
2020-09-29 11:30:40 +02:00
matejcik
08d896f2f9
chore(tests): update to kwargs usage and new btc.sign_tx API
2020-09-23 16:00:10 +02:00
Martin Milata
cff4955f93
core: implement SafetyChecks.PromptTemporarily
...
Also reword safety checks confirmation dialogs.
2020-09-18 09:02:40 +02:00
Martin Milata
9d2ad96ad4
core: add SafetyCheckLevel to Features
2020-09-18 09:02:40 +02:00
Andrew Kozlik
b00c4209ed
tests: Use correct commitment data in authorize_coinjoin tests.
2020-09-08 19:36:10 +02:00
Andrew Kozlik
4fc4152741
tests: Fix device tests for streamimg prev_tx after confirmation.
2020-09-04 14:36:39 +02:00
Tomas Susanka
ebc99435ab
Revert "core: remove ownership messages from the public api for now"
...
This reverts commit 0d5f00668f
.
2020-09-03 14:56:27 +02:00
Tomas Susanka
b99b8b3df3
Merge remote-tracking branch 'origin/release/2020-09'
2020-09-03 13:17:23 +02:00
Tomas Susanka
ba36cef369
tests: move fixtures to common directory, start with Cardano
2020-09-01 16:14:41 +02:00
Tomas Susanka
0d5f00668f
core: remove ownership messages from the public api for now
2020-09-01 15:56:57 +02:00
matejcik
e0583dd5cb
all: use a specific error code for "invalid session"
2020-08-28 15:37:06 +02:00
matejcik
e0ec5aa1e7
tests: clear session before each testcase
2020-08-28 15:37:06 +02:00
matejcik
46eb223b2a
tests: use new trezorlib locking/sessioning API where appropriate
2020-08-28 15:37:06 +02:00
matejcik
a08c34a624
tests: add tests for end_session
2020-08-28 15:37:06 +02:00
Tomas Susanka
a443a4a430
tests/upgrade: add support for filenames with revision
2020-08-27 20:24:32 +02:00