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

505 Commits

Author SHA1 Message Date
David Misiak
2011ffe9c9 chore(cardano): replace governance by cvote 2023-03-06 11:27:13 +01:00
Martin Milata
557e29769b feat(core/ui): redesigned passphrase dialogs
[no changelog]
2023-02-28 23:30:38 +01:00
Andrew Kozlik
423ce75b4f feat(core): Validate script type of change-outputs in Bitcoin signing. 2023-02-28 14:06:07 +01:00
Andrew Kozlik
2a3cc688a1 fix(legacy): Sync input sanitization with trezor-core. 2023-02-28 14:06:07 +01:00
Andrew Kozlik
102ab3c7d6 feat(core): Check script type match for change-outputs in Bitcoin signing. 2023-02-28 14:06:07 +01:00
matejcik
1e44f712e2 tests(ethereum): show Ethereum address on display for UI testing 2023-02-27 14:22:49 +01:00
Andrew Kozlik
4372d19ceb feat(core): Remove authorization when rounds are depleted.
[no changelog]
2023-02-27 14:22:25 +01:00
Andrew Kozlik
7cbcb25a75 feat(test): Add device test for migration to CoinJoin account. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
300c986851 feat(legacy): Implement SetBusy. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
68bbcbdc4d feat(legacy): Implement CoinJoin signing. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
0466972f30 feat(legacy): Implement SLIP-0025 CoinJoin accounts. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
a1afadfd01 feat(legacy): Implement UnlockPath. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
ec9756cabd feat(legacy): Support native SegWit external inputs with non-ownership proof. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
fa2d618f7d feat(legacy): Implement SLIP-0019 proofs of ownership. 2023-02-27 14:22:25 +01:00
grdddj
20d280d7e0 feat(core): ability to not show passphrase coming from host
[no changelog]
2023-02-17 12:55:11 +01:00
Martin Milata
afb5c55416 feat(core/ui): reset_device copy change
[no changelog]
2023-02-17 12:35:19 +01:00
grdddj
82bd908246 feat(core): EIP712 signing shows the ethereum address at the beginning 2023-02-14 15:30:05 +01:00
Martin Milata
7a375b5642 feat(core/ui): adjust device customization layouts 2023-02-10 13:03:29 +01:00
matejcik
39a8e6bb50 tests(cosi): add invalid path tests 2023-02-03 13:01:47 +01:00
matejcik
3ed84a84e9 fix(core): update SLIP-26 signing paths 2023-02-03 13:01:47 +01:00
Andrew Kozlik
ab65b18b07 fix(core): Use lowercase in the name coinjoin.
[no changelog]
2023-01-21 10:35:09 +01:00
tychovrahe
d00e87ea80 feat(core/rust): homescreen background image
[no changelog]
2023-01-19 14:11:42 +01:00
Armin Sabouri
96b2d05d47 refactor(core): Allow eth & btc signing at m/45'/coin_type/account/change/address_index
[no changelog]
2023-01-18 12:08:17 +01:00
Martin Milata
fc3ee87c25 feat(core/bitcoin): SignMessage: whitelist T1 firmware signing address_n
[no changelog]
2022-12-09 15:43:11 +01:00
Martin Milata
b12de5d861 feat(core): CoSi collective signatures 2022-12-09 15:43:11 +01:00
Martin Milata
452857757a feat(core/rust/ui): support ask_pagination flag in confirm_blob
[no changelog]
2022-12-06 00:26:25 +01:00
Martin Milata
a61a46808e fix(core/rust/ui): no hyphens when breaking monospace lines
[no changelog]
2022-11-29 21:03:06 +01:00
grdddj
f48890afb3 chore(tests): make all the device tests work with UI2 2022-11-21 14:08:47 +01:00
Andrew Kozlik
4e79eec188 feat(tests): Do not automatically enable experimental features in device tests. 2022-11-02 14:58:01 +01:00
David Misiak
c36870defa chore(cardano): rename Catalyst to governance 2022-10-31 16:08:39 +01:00
Andrew Kozlik
c7fb908146 chore: Change precision of CoinJoin fee rate percentage from 8 to 6 decimal digits. 2022-10-27 17:37:48 +02:00
Andrew Kozlik
c41ccdca76 feat(tests): Implement CoinJoin requests in device tests. 2022-10-27 17:37:48 +02:00
Andrew Kozlik
ee8c596b1a refactor(core): Use a list of presigned inputs in Bitcoin signing.
Co-authored-by: Ondřej Vejpustek <ondrej.vejpustek@satoshilabs.com>
2022-10-17 15:20:46 +02:00
Andrew Kozlik
cc054050a5 feat(core): Improve Bitcoin signing progress display. 2022-10-17 15:20:46 +02:00
Andrew Kozlik
8ef5e5120a feat(core): Verify ownership proofs before transaction approval in BTC signing. 2022-10-17 15:20:46 +02:00
Andrew Kozlik
5b453c88ed feat(core): Add serialize option to SignTx. 2022-10-17 15:20:46 +02:00
Andrew Kozlik
294c390c96 feat(tests): Test signing a large CoinJoin. 2022-10-17 15:20:46 +02:00
Andrew Kozlik
0bc35dd2e6 fix(tests): Specify correct coin in SLIP-25 XPUB test. 2022-10-04 20:17:56 +02:00
Martin Milata
f56041a759 chore(tests): remove leftover tempfile 2022-10-04 09:27:06 +02:00
Martin Novak
dd168d2893 feat(core,legacy): display only sat instead of sat BTC 2022-09-15 08:01:24 +02:00
grdddj
f44ee9b665 feat(tests): add UI test for showing taproot address QR code 2022-09-14 15:13:19 +02:00
Tomas Krnak
031bac4a9b feat(core): add support for Zcash unified addresses 2022-08-30 21:15:49 +02:00
Andrew Kozlik
58ef0da703 feat(tests): Test spend from SLIP-25 path. 2022-08-30 15:53:44 +02:00
Andrew Kozlik
97115a1a54 fix(tests): Device tests for SLIP-0025 CoinJoin accounts. 2022-08-30 15:53:44 +02:00
Andrew Kozlik
f253d7e591 feat(tests): Add test for busy screen. 2022-08-22 18:15:29 +02:00
Andrew Kozlik
b7dde50d5f fix(legacy): Generate CoSi nonce randomly. 2022-08-02 20:38:04 +02:00
matejcik
e37ce2b186 tests: change fw hashing test to work without fw dumping 2022-08-02 17:12:07 +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
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
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
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
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
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
28cd0d2606 test: mark test_show_multisig_xpubs as flaky 2022-03-31 13:50:29 +02: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
c3b28d8fb4 feat(tests): show QR codes in GetAddress test 2022-03-10 11:27:21 +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
grdddj
5b0be3273e fix(tests): add mock urandom to T1 reset test 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
grdddj
9a71ac74c9 chore(tests): add type hints and improve styling in device test files 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
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
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