grdddj
d1732ae9bc
chore(core): delete unused variables
2022-11-10 14:08:28 +01:00
grdddj
756a97a95d
chore(core): delete unused functions
2022-11-10 14:08:28 +01:00
grdddj
52558c7b96
chore(core): use more const to decrease space
2022-11-10 14:08:28 +01:00
grdddj
49765830de
chore(core): add underscores to private constants to reduce code size
2022-11-10 14:08:28 +01:00
Andrew Kozlik
3707f19aee
feat(core): Do not confirm coordinator identifier on Trezor.
...
[no changelog]
2022-11-07 18:40:35 +01:00
Martin Milata
2dcf09db34
chore(common): update chains and tokens
2022-11-02 12:03:22 +01:00
Martin Milata
eff8e08a9c
chore(common): update chains and tokens
2022-11-01 21:02:41 +01:00
grdddj
47a749d683
chore(proto): remove default value from NEM payload
...
[no changelog]
2022-11-01 10:57:27 +01:00
Andrew Kozlik
a1ffdcaa8d
chore(core): Add CoinJoin request public key.
...
[no changelog]
2022-10-31 16:27:26 +01:00
David Misiak
51a8e18c8d
feat(cardano): add preprod and preview testnets
2022-10-31 16:08:39 +01:00
David Misiak
3b289a4d2c
chore(cardano): update voting public key bech32 prefix
2022-10-31 16:08:39 +01:00
David Misiak
c36870defa
chore(cardano): rename Catalyst to governance
2022-10-31 16:08:39 +01:00
David Misiak
ab02f7a400
feat(cardano): add support for CIP36 Catalyst registration format
2022-10-31 16:08:39 +01:00
David Misiak
02dad0225b
refactor(cardano): shorten catalyst parameters variable name
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
0d042421c3
fix(core): Improve rounding of CoinJoin fees by deferring division.
2022-10-27 17:37:48 +02:00
Andrew Kozlik
0bd9314bb9
chore(core): Do not check total mining fee in CoinJoin.
2022-10-27 17:37:48 +02:00
Andrew Kozlik
1df65d1a0c
feat(core): Implement CoinJoin requests.
2022-10-27 17:37:48 +02:00
Andrew Kozlik
d2df761067
fix(core): No need to derive script_pubkey for external inputs.
2022-10-27 17:37:48 +02:00
Andrew Kozlik
b3a383efac
chore(core): Move node derivation outside of input_derive_script().
2022-10-27 17:37:48 +02:00
Andrew Kozlik
3c8ba37eb5
feat(core): Include coin name in CoinJoin fee per vB format.
...
[no changelog]
2022-10-26 14:02:03 +02:00
Andrew Kozlik
318d31d111
refactor(core): Move _get_fee_rate_str() to common and optionally add coin shortcut.
...
[no changelog]
2022-10-26 14:02:03 +02:00
Andrew Kozlik
3594de8c7f
fix(core): Improve CoinJoin dialog wording.
...
[no changelog]
2022-10-26 14:02:03 +02:00
Andrew Kozlik
627ef9748f
feat(core): Remove coin name from CoinJoin confirmation dialog.
...
[no changelog]
2022-10-26 14:02:03 +02:00
Andrew Kozlik
b7f86ec158
feat(core): Improve CoinJoin busy screen.
...
[no changelog]
2022-10-26 14:02:03 +02:00
grdddj
fac4e2f157
chore(xmr): delete unused code
...
[no changelog]
2022-10-25 21:36:03 +02:00
Dusan Klinec
26711857e8
refactor(xmr): remove old BP code
2022-10-25 21:36:03 +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
5dddb06e2b
refactor(core): Replace Bitcoin signing progress functions with a class.
2022-10-17 15:20:46 +02:00
Andrew Kozlik
d815a7d6de
chore(core): Use C implementation of Bech32 decode.
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
Pavol Rusnak
029e47e1e8
chore(common/defs/fido): add proton
...
[no changelog]
2022-10-17 12:02:54 +02:00
Vladyslav Burzakovskyy
e7ff43272c
chore(common/defs/fido): add invity
...
[no changelog]
2022-10-14 16:28:51 +02:00
Andrew Kozlik
5bbfd40df6
feat(core): Add set_int() and get_int() to storage cache.
...
[no changelog]
2022-10-10 20:32:36 +02:00
tychovrahe
fb08536b6a
feat(core): icon and images using new format
2022-09-29 21:50:10 +02:00
tychovrahe
f7b9bb4ef8
feat(core/rust): use dma2d to improve rendering performance, implement text over image and icon over icon functions
2022-09-29 21:50:10 +02:00
tychovrahe
b9647d1296
fix(core): fix flashing usb disconnected error
...
[no changelog]
2022-09-26 13:31:04 +02:00
Martin Novak
dd168d2893
feat(core,legacy): display only sat instead of sat BTC
2022-09-15 08:01:24 +02:00
Martin Novak
a41cfadbf1
feat(core,legacy): Extend decimals of fee rate to 2 digits
2022-09-09 15:28:31 +02:00
Dusan Klinec
2fe40f70a6
fix(xmr): fixes #2453 , incorrect address display
2022-09-09 14:07:30 +02:00
Martin Milata
5a9c2a1363
feat(core/rust/ui): recovery layouts
...
[no changelog]
2022-09-07 16:46:47 +02:00
Martin Milata
4782afbae3
refactor(core/rust/ui): layouts for BIP-39 backups
...
[no changelog]
2022-09-07 16:46:47 +02:00
Tomas Krnak
031bac4a9b
feat(core): add support for Zcash unified addresses
2022-08-30 21:15:49 +02:00
Andrew Kozlik
77be3653b4
feat(core): Implement SLIP-0025 CoinJoin accounts.
2022-08-30 15:53:44 +02:00
grdddj
c53177fe89
feat(core): show fee rate when replacing transaction
2022-08-30 10:20:54 +02:00
Ondrej Mikle
72228e35cf
feat(core): show red error header when USB data not connected
2022-08-25 16:42:29 +02:00
Ondrej Mikle
a0287698d5
feat(core): show blue dot when USB data not connected
2022-08-25 16:42:29 +02:00
Andrew Kozlik
d089fd3187
feat(core): Implement SetBusy message.
2022-08-22 18:15:29 +02:00
matejcik
114376f734
feat(core/strings): use thousands separator ( fixes #2394 )
2022-08-02 20:35:49 +02:00
matejcik
a6410693b3
Revert "feat(core): implement firmware dumping"
...
This reverts commit 37c61c1381
.
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
matejcik
00095c5787
chore: update tokens & networks
2022-08-02 13:57:31 +02:00
Andrew Kozlik
90792eb438
fix(core): Fix Decred transaction weight calculation.
2022-08-01 15:10:34 +02:00
Andrew Kozlik
426eae4dfc
fix(core): Ensure correct order when verifying external inputs in Bitcoin signing.
2022-07-28 17:14:05 +02:00
Andrew Kozlik
421eec1d3b
feat(core): Add get_base_weight() to TxWeightCalculator.
...
[no changelog]
2022-07-20 18:23:34 +02:00
Andrew Kozlik
0ce2c079b0
feat(core): Account for minimum registrable output amount in CoinJoin checks.
...
[no changelog]
2022-07-20 18:23:34 +02:00
gabrielkerekes
1a68650c43
feat(cardano): add support for hiding some details during tx signing
2022-07-04 15:58:27 +02:00
gabrielkerekes
2f9435570d
feat(cardano): add tx signing show details prompt
2022-07-04 15:58:27 +02:00
David Misiak
ba7fb2cb54
feat(cardano): allow required signers in more signing modes
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
11c4b25cb0
feat(cardano): allow datum hash in non-script outputs
2022-07-04 15:58:27 +02:00
David Misiak
f7d0507a65
feat(cardano): add support for chunked embedded CBOR
2022-07-04 15:58:27 +02:00
David Misiak
8a229edcb3
refactor(cardano): shorten identifiers in addresses, certs, aux data
2022-07-04 15:58:27 +02:00
David Misiak
50ad00a3c0
refactor(cardano): use module imports for addresses, certs, aux data
2022-07-04 15:58:27 +02:00
David Misiak
2753faa7b0
refactor(cardano): shorten identifiers
2022-07-04 15:58:27 +02:00
David Misiak
1ae6b68eaf
refactor(cardano): use module imports for messages, layout
2022-07-04 15:58:27 +02:00
David Misiak
0836e91faa
refactor(cardano): inline validation errors
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
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
ccf364f1da
refactor(core/ui): DebugLink swipe for rust layouts
...
[no changelog]
2022-06-28 18:01:02 +02:00
Dusan Klinec
2d36c4e8f3
fix(core/monero): add missing view_tags to hf15
2022-06-28 16:21:29 +02:00
Pavol Rusnak
95daa2fda3
chore(common/defs): replace consensus_branch_id with overwintered bool flag
...
[no changelog]
2022-06-27 12:39:03 +02:00
mcudev
1ec62e9c86
common/defs/fido: update fastmail
2022-06-27 11:09:31 +02:00
mcudev
7d37109eb8
common/defs/fido: add cloudflare
2022-06-14 15:12:51 +02:00
Dusan Klinec
1e9acf10fa
fix(xmr): remove inv8 optimization as in xmr master
2022-06-08 08:59:34 +02:00
Pavol Rusnak
59f78d06b1
chore(common/defs/fido): add kraken
...
[no changelog]
2022-06-01 14:52:15 +02:00
matejcik
d3f24f6e17
feat(core): provisionally gate RebootToBootloader under experimental features
2022-06-01 14:50:59 +02:00
matejcik
e66ed079b0
feat(core): show confirmation dialog before rebooting
2022-06-01 14:50:59 +02:00
Ondrej Mikle
c563c987e1
feat(core): jump back and stay in bootloader for TT via reverse SVC call trampoline
2022-06-01 14:50:59 +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
85f0d3a741
feat(core,legacy): show fee rate when signing transaction
2022-05-25 14:43:45 +02:00
grdddj
14a0bc13ce
chore(docs): mention that .mako files are rendered by make templates
...
[no changelog]
2022-05-19 14:09:16 +02:00
grdddj
6dc4426151
feat(ui): setup homescreen and label for model R
...
[no changelog]
2022-05-19 14:09:16 +02:00
Martin Milata
c5f1bec474
Merge branch 'release/22.05'
2022-05-18 12:43:53 +02:00
Dusan Klinec
5e6582a3fe
feat(xmr): add support for HF15, BP+
2022-05-16 12:37:24 +02:00
Dusan Klinec
25d32a8144
feat(xmr): implement bp+, refactor, code cleanup
...
- implement BulletProof plus verifier and prover
- use bulletproof exception to signalize proof generation failed and should be tried again. More robust, fixes bug that was not triggered yet (return tuple did not work properly in all situations)
- precomputed 2**i vector is removed as it can be easily computed
- BP code cleanup, minor optimizations, comments
2022-05-16 12:37:24 +02:00
Dusan Klinec
33c174491f
refactor(core/monero): Monero code cleanup
...
* remove support for HF12 and below
* remove MLSAG support
* clean up monero cryptography naming
* get rid of "optional first argument" pattern, in favor of mandatory argument that is allowed to be None
(and fix several bugs related to this feature)
Co-authored-by: grdddj <jiri.musil06@seznam.cz>
Co-authored-by: Martin Milata <martin@martinmilata.cz>
Co-authored-by: matejcik <ja@matejcik.cz>
2022-05-16 12:37:24 +02:00
grdddj
6b5f578d02
feat(core): implement basic R emulator
...
Can be built by `TREZOR_MODEL=R make build_unix`, `make build_unix_frozen` does not work yet.
All the dialogs are not very pretty, they are just meant to work.
2022-05-06 11:44:52 +02:00
Martin Milata
29bab9e8a4
chore(common): update chains and tokens
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
b1c6b42201
fix(core): Stricter Bitcoin transaction checks.
2022-05-03 22:14:40 +02:00
matejcik
e47bcee4a4
fix(core): streamline progress animation disabling
2022-05-03 19:00:04 +02:00
matejcik
37c61c1381
feat(core): implement firmware dumping
2022-05-03 19:00:04 +02:00
Andrew Kozlik
485ee6e209
feat(core): Show progress in GetFirmwareHash.
2022-05-03 19:00:04 +02:00
Andrew Kozlik
822b1c344f
feat(core): Return fw_vendor in firmware Features message.
2022-05-03 19:00:04 +02:00
Andrew Kozlik
106ab65e21
feat(core): Implement GetFirmwareHash message.
2022-05-03 19:00:04 +02:00
Tomas Krnak
9985a72c6a
feat!(core): support Zcash v5 transaction format
...
This implements:
- ZIP-225: Version 5 Transaction Format
- ZIP-244: Transaction Identifier Non-Malleability
BREAKING CHANGE: Zcash prevouts are not verified (as in Taproot). Zcash replacement transactions are not supported.
2022-05-02 16:07:31 +02:00
Tomas Krnak
670d11d627
feat(core): add tx
argument to create_sig_hasher
method
2022-05-02 16:07:31 +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
2f987c3c5e
refactor(core/ui): remove dependencies on old layouts
...
[no changelog]
2022-04-07 17:58:41 +02:00
Pavol Rusnak
334f7bbbe6
chore(common): defs cleanup
...
- drop Gamecredits - they became an ERC-20 token in 2020
- drop Nix - dead coin
- drop Polis - coin became a BEP-20 token and later Olympus network in 2021
2022-03-25 14:27:30 +01:00
David Misiak
fec4fa2257
refator(cardano): validate map key order in HashBuilderDict
2022-03-18 14:32:54 +01:00
David Misiak
a36fc6cadc
fix(cardano): display tADA in testnet transactions
2022-03-18 14:32:54 +01:00
David Misiak
1f20c49536
feat(cardano): allow device-owned outputs in plutus txs
2022-03-18 14:32:54 +01:00
David Misiak
117c3c932f
fix(cardano): update testnet protocol magic
2022-03-18 14:32:54 +01:00
David Misiak
962f689e8a
feat(cardano): display tx id for plutus txs
2022-03-18 14:32:54 +01:00
David Misiak
f0e230642b
fix(cardano): display reward addresses for withdrawals
2022-03-18 14:32:54 +01:00
David Misiak
9f9535abb3
feat(cardano): add key hash stake credentials
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
1388912762
fix(cardano): add map key canonical order validation
2022-03-18 14:32:54 +01:00
David Misiak
143af80aea
fix(cardano): add input validation
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
matejcik
cdca0bad9e
fix(core): do not drop cashaddr prefix for QR code
...
[no changelog]
2022-03-18 11:59:04 +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
605e128ca0
chore(core): Simplify path warning UI.
2022-03-17 09:44:03 +01:00
Andrew Kozlik
94fa6d2515
feat(core): Guess weight of unverified external inputs.
2022-03-17 09:44:03 +01:00
Andrew Kozlik
43f1d67289
feat(core): Support unverified external inputs.
2022-03-17 09:44:03 +01:00
Andrew Kozlik
c9e6ca30c9
feat(core): Ensure input's script type and path match the scriptPubKey.
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
grdddj
3d505874aa
feat(ci): create pyright tool and include it in CI
...
[no changelog]
2022-03-02 15:43:50 +01:00
matejcik
bbf286e050
fix(core/debug): only wait for layout when _enabling_ watch_layout
2022-02-21 14:37:25 +01:00
Pavol Rusnak
c6667fa0c2
feat(core): verify bip340 pubkeys used in p2tr addresses
...
Co-Authored-By: Ondřej Vejpustek <ondrej.vejpustek@satoshilabs.com>
2022-02-16 10:25:15 +01:00
Pavol Rusnak
b9bbd5fcd7
chore: update dependencies
...
[no changelog]
Co-Authored-By: Martin Milata <martin@martinmilata.cz>
2022-02-15 13:28:03 +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
a1c62098e9
fix(core/ethereum): implement hold-to-confirm for eip1559 transactions
2022-02-08 14:27:23 +01:00
Andrew Kozlik
83686d1be2
chore(core): Add HashContextInitable protocol class.
2022-01-31 18:00:22 +01:00
Andrew Kozlik
f17a435cdf
refactor(core): Rename bitcoin_varint to compact_size.
2022-01-31 18:00:22 +01:00
Andrew Kozlik
0e58218f5f
feat(core): Implement Bitcoin payment requests.
2022-01-31 18:00:22 +01:00
Andrew Kozlik
d0c3a6a2fa
chore(core): Add mac field to Address message.
...
[no changelog]
2022-01-31 18:00:22 +01:00
Andrew Kozlik
2ac3d0acb4
feat(core): Implement GetNonce command.
2022-01-31 18:00:22 +01:00
Andrew Kozlik
ba4f046d6f
feat(common): Add INFO button to DebugLinkDecision.
...
[no changelog]
2022-01-27 13:15:04 +01:00
Martin Milata
98b1159b0b
Merge branch 'release/22.01'
...
Conflicts:
core/src/apps/ethereum/tokens.py
2022-01-19 15:24:51 +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
Andrew Kozlik
cdf2129b73
fix(core): Fix proof of ownership sighash computation.
2022-01-10 11:14:36 +01:00
Andrew Kozlik
88a08e3512
chore(core): Increase maximum CoinJoin coordinator name length to 36 (2 lines).
2022-01-10 11:14:36 +01:00
matejcik
e20879189f
style(core): remove old-style annotations (Set, Tuple, Union)
2022-01-07 21:41:17 +01:00
matejcik
5e1dce35b3
style(core): remove unused type:ignore comments
2022-01-07 21:41:17 +01:00
matejcik
80f6463799
style(core): define obj_eq and obj_repr so that they pass type-check
2022-01-07 21:41:17 +01:00
matejcik
dec89ea59e
refactor(core): convert if/elif chains to if-chains
...
This way AST parsers won't get stack exceeded (because an elif counts as
an else { if {}} to an AST parser apparently?) and so automated tools
will like tokens.py and friends.
2022-01-07 21:41:17 +01:00
matejcik
c3f2db3be5
refactor(core): improve type signature of bech32.convertbits
2022-01-07 21:41:17 +01:00
grdddj
9fc5bb546b
style(core): full pyright-based type-checking
...
Changes many fields to required -- as far as we were able to figure out,
signing would fail if these fields aren't provided anyway, so this
should not pose a compatibility problem.
Co-authored-by: matejcik <ja@matejcik.cz>
2022-01-07 21:41:17 +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
Martin Milata
3f12742669
chore(common): update coin support status
2021-12-28 12:42:43 +01:00
Martin Milata
c0dbcf37e4
chore(common): update chains and tokens
2021-12-28 12:42:43 +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
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
Andrew Kozlik
ef5994d9f3
feat(core): Support ownership proofs for Taproot addresses.
2021-12-06 18:23:48 +01:00
matejcik
949dfe1f5d
docs(core/cardano): add derivation scheme docs
2021-11-29 13:34:01 +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
221977ad9d
chore(core): Convert SIGHASH_* consts to SigHashType enum.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
ae35086bb9
refactor(core): Rename Hash143 to SigHasher and replace preimage_hash() with two functions.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
03b1b3bc6b
feat(core): Show path warning for SignMessage.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
ef2ad57ec8
fix(core): Fix CoinJoin approval check.
...
After fixing the TxWeightCalculator the approver needs to account for the
weight of the coordinator's output.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
56ac799626
feat(core): Support external inputs in TxWeightCalculator.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
f9f0b517e2
feat(core): Support Taproot in TxWeightCalculator.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
9b579094c0
fix(core): Fix TxWeightCalculator.
...
- Refactor TxWeightCalculator to count inputs and outputs itself.
- Fix witness data weight by adding the weight of the witness stack item count
for each input in segwit transactions and removing the weight of the
nonsensical extra inputs count.
- Get multisig pubkey count from multisig.nodes or multisig.pubkeys like in
multisig_get_pubkeys().
- Fix size of multisig script length encoding in segwit (varint vs. OP_PUSH).
- Improve comments.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
a5bd1643fc
fix(core): Fix OP_PUSH writing.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
7653efb415
chore(core): Disable Taproot for altcoins.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
c0f853dc78
chore(core): Disable ownership proof generation for Taproot.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
475b95b11e
feat(core): Disable prevtx streaming for Taproot.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
84e31310a1
feat(core): Support Taproot in SignatureVerifier.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
a17cdb7cfa
feat(core): Implement Taproot signing.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
381e8bc85a
feat(core): Implement the BIP-341 common signature message computation.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
99e4ed6f42
chore(core): Support script_pubkey parameter for Bitcoin inputs.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
630c06e782
feat(core): Support Taproot scripts.
2021-11-13 13:33:46 +01:00
Andrew Kozlik
68ad1b07d2
feat(core): Recognize Taproot inputs.
2021-11-13 13:33:46 +01:00
Pavol Rusnak
57fddcfd9d
feat(core): recognize Taproot change-outputs
2021-11-13 13:33:46 +01:00
Andrew Kozlik
dd7ed61939
feat(core): Implement GetAddress for taproot.
2021-11-13 13:33:46 +01:00
Pavol Rusnak
6406f0640d
feat(core): introduce PATTERN_BIP86 to keychain
2021-11-13 13:33:46 +01:00
Andrew Kozlik
cf14e06aa0
feat(core): Show address confirmation in SignMessage.
2021-11-10 17:35:57 +01:00
Andrew Kozlik
bc4a56b2c0
feat(core): Support no_script_type option in SignMessage.
2021-11-10 17:35:57 +01:00
matejcik
10e338e005
feat(core/cardano): allow derivation type selection
2021-11-10 13:57:57 +01:00
matejcik
f6f52445bd
feat(core/cardano): support Icarus, Icarus-Trezor, and Ledger 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
f818f4bc23
feat(core): derive Cardano seed together with normal seed, if requested
2021-11-10 13:57:57 +01:00
matejcik
eacaffd079
fix(core/ethereum): use built-in ethereum_pubkeyhash() in get_address
2021-11-10 13:57:57 +01:00
matejcik
faa807f995
feat(core): show progress for SLIP39 derivation
...
fixes #1842
2021-11-10 13:57:57 +01:00
matejcik
8caac218ec
feat(core/cardano): indicate whether Cardano seed should be derived
2021-11-10 13:57:57 +01:00
matejcik
bc75d05772
chore(common/defs/fido): add coinbase u2f
...
[no changelog]
2021-11-08 15:55:01 +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
Martin Milata
1979bcc39c
chore(common): bring back eth:xDAI
2021-11-02 15:05:14 +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
grdddj
b1a3618c17
refactor(core/ethereum): rename address.py to helpers.py
2021-11-02 14:27:01 +01:00
Martin Milata
9a7e6c2900
chore(common): update chains and tokens
2021-11-01 16:43:02 +01:00
Martin Milata
ea1b7fbd54
chore(common): update chains and tokens
2021-11-01 13:58:48 +01:00
Martin Milata
87cc44e73a
chore(common): update coins support status
...
[no changelog]
2021-11-01 13:58:48 +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
matejcik
84c310a2ba
chore(core): remove forgotten and unused apps/common/confirm.py
...
[no changelog]
2021-10-27 13:13:15 +02:00
Pavol Rusnak
b2ff86ff3a
fix(common): drop unusable coins BELL and ZNY ( #1872 )
...
there are no wallets that support Trezor and these coins
2021-10-26 13:09:34 +02:00
Pavol Rusnak
7b2825e68e
fix(common): rebrand brhodium to xrhodium
2021-10-26 12:01:08 +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
9d03112846
feat(core): Implement sending to taproot addresses.
2021-10-18 13:36:05 +02:00
Pavol Rusnak
ea0fb08fed
feat(core): add witness version to encode_bech32_address()
2021-10-18 13:36:05 +02:00
Pavol Rusnak
dbc464750b
feat(common): enable Taproot on Bitcoin
2021-10-18 13:36:05 +02:00
Pavol Rusnak
9aa07c7f96
feat(core): update bech32.py to support Bech32m
2021-10-18 13:36:05 +02:00
Pavol Rusnak
ac4cb88184
feat(common): add taproot field to coin definitions
...
enable for Bitcoin Testnet and Bitcoin Regtest
2021-10-18 13:36:05 +02:00
Pavol Rusnak
fea240ed40
feat(core): add support for Taproot descriptors
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
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
gabrielkerekes
54909681a8
feat(cardano): add support for 1854 and 1855 path roots
2021-10-11 15:16:24 +02:00
matejcik
c30091b9c5
refactor(core/stellar): replace confirm_timebounds_stellar with confirm_properties
2021-09-24 10:30:19 +02:00
matejcik
1dcfdebf7a
feat(all): make Stellar timebounds required
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
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
e80077e0a4
feat(core/ethereum): enable type-checking for Ethereum app
2021-09-10 15:09:03 +02:00
matejcik
0c2863fc8d
feat(core/ethereum): use TokenInfo object instead of tuples
2021-09-10 15:09:03 +02:00
matejcik
96ed53cc1c
refactor(core,legacy): remove Wanchain special handling
...
now that Wanchain has proper chainID and we don't need to detect it by
magic.
[no changelog]
2021-09-10 15:09:03 +02:00
matejcik
639406b01f
feat(all): make chain_id mandatory
2021-09-10 15:09:03 +02:00
arbitrarylink
f051225730
feat(core,legacy): add support for Ethereum 64-bit chain_id
...
* Changes from original PR
* Now that we are rejecting chain_ids of 0, we need to have the tests set the chain_ids to at least 1.
* Ran 'make gen' and uploaded changed files.
* Ran make style_check and fixed reported errors
* Added changelog files
* Reverted changes concerning chain_id 0 being rejected.
* Adds tests for MAX_CHAIN_ID and MAX_CHAIN_ID+1. Also reverts MAX_CHAIN_ID to the previous value.
* Added missing whitespace around arithmetic operator.
Co-authored-by: Michael Hatton <michaelhatton@Michaels-Mini.fios-router.home>
2021-09-10 15:09:03 +02:00
matejcik
eb34c0850e
fix(common): regenerate support data
...
[no changelog]
2021-08-27 13:38:45 +02:00
matejcik
174985619d
chore(common): bump chains and tokens for release
2021-08-24 13:14:06 +02:00
matejcik
7aed8d535d
feat(all): re-enable Firo ( fixes #1767 )
2021-08-23 11:43:57 +02:00
Martin Milata
f37ca13f1a
refactor(core): disable SD, SBU, fatfs for T1 build
2021-08-20 12:22:13 +02:00
gabrielkerekes
8e3bc39b56
chore(cardano): update and format README
2021-08-20 11:50:13 +02:00
gabrielkerekes
7c3b5c86a5
fix(cardano): forbid mixing paths from multiple accounts in a single transaction
2021-08-20 11:50:13 +02:00
gabrielkerekes
b0c8590f00
feat(cardano): streamed transaction signing
2021-08-20 11:50:13 +02:00
matejcik
d33d61d84e
chore(core): 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
2a91052b02
refactor(core/ui): move altcoin and webauthn layouts to separate file
...
Also fix types.
2021-08-04 15:03:11 +02:00
Martin Milata
31052007ff
refactor(core): enable mypy for apps.management
2021-08-04 15:03:11 +02:00
Martin Milata
e57027fc5c
refactor(core): convert apps.management.change_wipe_code to layouts
2021-08-04 15:03:11 +02:00
Martin Milata
5a0ea3f146
refactor(core): convert apps.management.recovery_device to layouts
2021-08-04 15:03:11 +02:00
Martin Milata
312876ab67
refactor(core): convert apps.management.reset_device to layouts
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
fcb5f88318
fix(core/bitcoin): nicer UI for ownership proofs
2021-07-26 14:48:35 +02:00
matejcik
b30c9f7584
refactor(core/stellar): use semantically appropriate layouts everywhere
2021-07-26 14:48:35 +02:00
matejcik
16b87e4d50
fix(core/stellar): fail cleanly when asset code has wrong length
2021-07-26 14:48:35 +02:00
matejcik
ad6976e01f
refactor(core): use confirm_blob instead of confirm_hex in apps
2021-07-26 14:48:35 +02:00
Andrew Kozlik
2964f2e855
refactor(core/cardano): Clean up variable_length_encode().
2021-07-22 10:54:49 +02:00
Andrew Kozlik
97ca1e3341
chore(core): Add offset parameter to cbor.decode().
2021-07-22 10:54:49 +02:00
Andrew Kozlik
7811204ed5
refactor(core/bitcoin): Use HashWriter in address derivation.
2021-07-22 10:54:49 +02:00
Andrew Kozlik
2c003052f5
refactor(core/bitcoin): Change CoinInfo.script_hash to be a HashContext.
2021-07-22 10:54:49 +02:00
Andrew Kozlik
27e6f35f78
refactor(core/bitcoin): Change scripts to use writer semantics.
2021-07-22 10:54:49 +02:00
Andrew Kozlik
8538f55edc
refactor(core/bitcoin): Use global static buffer for Tx serialization.
2021-07-22 10:54:49 +02:00
Andrew Kozlik
7277a49047
fix(common): Add new rpId to Binance's FIDO definition.
2021-07-21 13:19:16 +02:00
matejcik
cf15dce326
refactor(core/ethereum): improve API of the rlp module
2021-07-19 13:59:28 +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
c067618828
fix(common): Fix incorrect SLIP-44 coin type for Bgold and SmartCash Testnets.
2021-06-30 18:25:58 +02:00
Andrew Kozlik
3e9f8a32ac
fix(core): Fix insufficient BIP-32 path checks.
...
- Disable testnet coins from accessing Bitcoin paths.
- Restrict BIP-45 paths to Bitcoin and coins with strong replay protection.
2021-06-30 18:25:58 +02:00
Pavol Rusnak
8cfa5da1ce
docs: fix typos in comments
...
[skip_ci]
2021-06-30 15:41:55 +02:00
gabrielkerekes
db657615f4
fix(cardano): use OrderedMap for output tokens and withdrawals
2021-06-24 08:24:47 +02:00
gabrielkerekes
4e5772662c
fix(cardano): don't allow duplicate withdrawals
2021-06-24 08:24:42 +02:00
gabrielkerekes
3cd2182b69
feat(core): introduce OrderedMap into CBOR serialisation
...
Items of an OrderedMap are included in CBOR as they come without sorting them in any way.
2021-06-24 08:22:39 +02:00
matejcik
015c47d564
chore(core): export PropertyType to fix mypy errors
2021-06-23 11:51:18 +02:00
matejcik
da4442bbd7
feat(core): auto-hexlify in confirm_properties
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
ffb400180d
refactor(core/ui): more consistent layout parameter names
2021-06-23 11:51:18 +02:00
Martin Milata
a143fe34d0
refactor(core): convert apps.lisk to layouts
2021-06-23 11:51:18 +02:00
Martin Milata
ebf6ef1666
refactor(core): convert apps.tezos to layouts
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
6aeaadfe16
refactor(core): convert apps.ripple 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
6c926ad82e
refactor(core): convert apps.ethereum to layouts
2021-06-23 11:51:18 +02:00
matejcik
1012ee8497
feat(core): send ButtonRequests for paging events
2021-06-22 11:25:12 +02:00
matejcik
52c34c7364
fix(core): allow caching empty values ( fixes #1659 )
2021-06-11 12:32:13 +02:00
gabrielkerekes
b2de8909d1
fix(core/cardano): reintroduce max tx output size
...
Output size is currently limited to 4000 bytes at protocol level. Given the maximum transaction size Trezor can handle (~9kB), we also want to enforce this size limit here so that when the limit is raised at protocol level again, Trezor would still not be able to produce larger outputs than it could reliably spend. Once Cardano-transaction signing is refactored to be completely streamed and maximum supported transaction size is thus raised, this limit can be lifted.
2021-06-08 15:02:24 +02:00
gabrielkerekes
a92b5fc333
fix(core/cardano): forbid tx outputs with both address and address parameters
2021-06-08 15:02:24 +02:00
gabrielkerekes
597402eab8
refactor(core/cardano): decouple address parameters validation
2021-06-08 15:02:24 +02:00
matejcik
729414e606
fix(core): exclude get/set U2F counter from BITCOIN_ONLY
2021-06-08 09:55:19 +02:00
matejcik
da2ef8ed41
refactor(core): create and use protobuf uvarint writer
2021-06-08 09:55:19 +02:00
Jan Pochyla
a8623c4b59
refactor(core): fix imports and use new protobuf API in apps
2021-06-08 09:55:19 +02:00
Jan Pochyla
02aa14fc04
refactor(core): Switch to new Protobuf API
2021-06-08 09:55:19 +02:00
Pavol Rusnak
23aa69caea
fix(core): unify Features.revision reporting with legacy
2021-06-04 12:50:49 +02:00
matejcik
2fac964a29
chore(common): disable Firo support
2021-06-04 11:38:18 +02:00
Pavol Rusnak
fce3640848
fix(common): remove dead coin Hatch
2021-06-04 10:10:26 +02:00
matejcik
86089fa5ad
feat(core): avoid restarting session for select messages ( fixes #1631 )
2021-06-01 14:07:29 +02:00
Pavol Rusnak
155fc7ac67
fix(core): remove tcDisplay from metadata/trezor-ctap2.json
2021-05-19 14:49:54 +02:00
Pavol Rusnak
d358503676
fix(core): remove txAuthSimple from metadata/trezor-ctap2.json
2021-05-19 14:45:02 +02:00
Martin Milata
c54077a714
fix(core): imports needed for T1 startup
...
Now debug build booted on wiped T1 connects to USB and shows square in
top right corner.
2021-05-17 18:03:07 +02:00
matejcik
1e0a23c133
fix(core/paths): make sure containers are copied along with the numbers they contain
2021-05-06 13:14:21 +02:00
matejcik
ed5c357b78
fix(core): properly cache last successful unlock time
2021-05-06 13:14:21 +02:00
matejcik
959cf7d515
fix(core/homescreen): properly redraw when an outside process kills homescreen
...
This happens with FIDO which does not use the normal workflow management
and so `workflow.close_others()` is never called.
2021-05-06 13:14:21 +02:00
matejcik
f1a54f2108
refactor(core): remove more global imports
2021-05-06 13:14:21 +02:00