Pavol Rusnak
3488138285
chore(legacy): drop unused ECIES code
...
[no changelog]
2021-11-19 11:44:56 +01:00
Martin Milata
d656f88572
style(all): reformat with clang-format 13.0
2021-11-19 10:54:31 +01:00
Andrew Kozlik
f4b8dbefb6
fix(legacy): Fix testnet account label in GetAddress dialog.
2021-11-18 22:39:32 +01:00
Pavol Rusnak
274ccdc4c0
fix(legacy): add Taproot account handling to GetAddress dialog
2021-11-18 22:39:32 +01:00
Andrew Kozlik
cafc49fabd
fix(legacy): Fix transaction weight calculation.
...
Fix size of multisig script length encoding in segwit (varint vs. OP_PUSH).
2021-11-18 22:39:32 +01:00
Andrew Kozlik
567cbd0250
feat(legacy): Support Taproot in weight calculation.
2021-11-18 22:39:32 +01:00
Andrew Kozlik
e30ccabed3
feat(legacy): Show path warning for SignMessage.
2021-11-18 22:39:32 +01:00
Andrew Kozlik
98ad54b7ee
chore(legacy): Disable Taproot where it's not supported.
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
7597eb25ab
feat(legacy): Disable prevtx streaming for Taproot.
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
9f65165887
feat(legacy): Introduce SIGHASH_ALL_TAPROOT.
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
aed79eec65
chore(legacy): Recognize Taproot script types.
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
34e8284331
feat(legacy): Implement the BIP-341 common signature message computation.
2021-11-18 22:39:32 +01:00
Andrew Kozlik
78a9ab8123
feat(legacy): Add BIP86 paths to coin_path_check().
2021-11-18 22:39:32 +01:00
Ondřej Vejpustek
9b1c5df451
feat(legacy): use secp256k1-zkp where possible
2021-11-18 19:05:40 +01:00
Ondřej Vejpustek
a22e6a688f
build(legacy): build with secp256k1-zkp library
2021-11-18 19:05:40 +01:00
Andrew Kozlik
0737deedc4
fix(legacy): Fix split_message() to correctly handle strings that are not null-terminated.
2021-11-10 17:35:57 +01:00
Andrew Kozlik
d8de95767d
feat(legacy): Use fixed font in SignMessage and VerifyMessage.
2021-11-10 17:35:57 +01:00
Andrew Kozlik
c60305d8f0
feat(legacy): Implement pagination in SignMessage and VerifyMessage.
2021-11-10 17:35:57 +01:00
Andrew Kozlik
5e6e56ac4d
feat(legacy): Show address confirmation in SignMessage.
2021-11-10 17:35:57 +01:00
Andrew Kozlik
4146ab7f9e
feat(legacy): Support no_script_type option in SignMessage.
2021-11-10 17:35:57 +01:00
Martin Milata
a01516389a
chore(vendor): update QR-code-generator
2021-11-05 14:09:11 +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
grdddj
9d643808c1
chore(legacy): fix build after adding EthereumSignTypedData [no changelog]
2021-11-02 14:27:01 +01:00
Andrew Kozlik
eb90efd914
chore(crypto,core,legacy): Add return code to hdnode_fill_public_key().
...
[no changelog]
2021-11-01 16:39:53 +01:00
Andrew Kozlik
34621a6b6d
fix(crypto,core,legacy): Check private key validity when deriving public key.
...
[no changelog]
2021-11-01 16:39:53 +01: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
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
Andrew Kozlik
13cbb59082
feat(common): Add script_pubkey field to TxInput message.
2021-10-18 19:58:56 +02:00
Andrew Kozlik
926365b64e
fix(legacy): Fix compile-time check of maximum protobuf message size.
2021-10-18 16:31:40 +02:00
Pavol Rusnak
60bd59fbad
feat(crypto): update segwit_addr 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
2035ff4569
feat(legacy): add support for Taproot descriptors
2021-10-18 13:36:05 +02:00
amadejpapez
85ba7c12ba
style(all): use f-strings for formatting
...
[no changelog]
2021-10-13 11:53:17 +02:00
Martin Milata
83a81da37d
fix(legacy): don't mention decred in btconly fw
2021-10-07 15:26:49 +02:00
Ondrej Mikle
a85d2483ff
chore(legacy & core): changelogs added
2021-09-27 15:42:29 +02:00
Ondrej Mikle
6ea4b7b211
fix(core & legacy): better styled compiler checks
2021-09-27 15:42:29 +02:00
Ondrej Mikle
6b849b1d4d
fix(core & legacy): avoid accidental build with broken stack protector
2021-09-27 15:42:29 +02:00
matejcik
1dcfdebf7a
feat(all): make Stellar timebounds required
2021-09-24 10:30:19 +02:00
matejcik
4b8f52cd2f
refactor(legacy): update to new Stellar protobuf usage
...
[no changelog]
2021-09-24 10:30:19 +02:00
Martin Milata
53e2573691
docs(core): fix dates in changelog
2021-09-16 18:41:06 +02:00
Martin Milata
35a41fd957
Merge branch 'release/21.09' into master
...
Conflicts:
core/src/apps/ethereum/tokens.py
2021-09-16 17:28:36 +02:00
matejcik
d318a29343
fix(legacy/ethereum): set correct limit for SignTxEIP1559.to
2021-09-10 15:09:03 +02:00
matejcik
2ce0c8f188
fix(legacy): make use of Ethereum required fields
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
Tomas Susanka
cec1f39a90
chore(core, legacy): bump versions
...
[no changelog]
2021-08-31 12:55:37 +02:00
Tomas Susanka
1f5800a966
chore(legacy): generate Changelog
2021-08-26 14:54:27 +02:00
Andrew Kozlik
dd65780610
fix(legacy): Stricter protobuf field handling in Stellar.
2021-08-24 13:46:08 +02:00
matejcik
7aed8d535d
feat(all): re-enable Firo ( fixes #1767 )
2021-08-23 11:43:57 +02:00
matejcik
becf5dcc53
chore(legacy): remove Lisk
2021-08-19 10:25:41 +02:00
matejcik
a39870449f
fix(legacy): recognize SignTXEIP1559 on legacy build
...
[no changelog]
2021-08-10 11:00:29 +02:00
matejcik
9ab1891b22
feat(common): more required fields in messages-management
...
[no changelog]
2021-08-04 15:03:11 +02:00
matejcik
33a9a14eab
feat(legacy/emulator): avoid busy loop when waiting for messages
2021-08-04 10:58:15 +02:00
Pavol Rusnak
397a2ab18e
feat(legacy): make sure that known_bootloader check contains the hash of our bundled bootloader
2021-07-23 13:46:06 +02:00
Andrew Kozlik
c1843f9f9f
style(legacy): Remove nested conditional operators.
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
Martin Milata
0d251fc01a
Merge branch 'release/21.07'
2021-07-16 14:34:20 +02:00
Andrew Kozlik
24bb401638
fix(legacy,core): Fix operation source account encoding in Stellar.
2021-07-13 17:24:16 +02:00
Martin Milata
478bc81b86
chore(legacy): bump version to 1.10.3
2021-07-08 13:38:09 +02:00
Martin Milata
01c1ae426f
docs: add security fixes to changelogs
2021-06-30 18:32:58 +02:00
Andrew Kozlik
5fb0f9a6c5
feat(legacy): Distinguish between known path checks and script type checks in coin_path_check().
2021-06-30 18:25:58 +02:00
Andrew Kozlik
b8cb531098
feat(legacy): Check presence of multisig parameters in coin_known_path_check() for consistency with core checks.
2021-06-30 18:25: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
28421594c9
fix(legacy): Use short-circuit evaluation in coin_known_path_check().
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
3884232f74
feat(legacy): Restrict path ranges for account, change and address index.
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
Andrew Kozlik
18f4a47173
fix(legacy): Disable spending testnet coins from Bitcoin paths.
2021-06-30 18:25:58 +02:00
Martin Milata
a2d2405a11
docs(legacy/firmware): changelog for 1.10.2
2021-06-30 18:17:09 +02:00
Pavol Rusnak
8cfa5da1ce
docs: fix typos in comments
...
[skip_ci]
2021-06-30 15:41:55 +02:00
Andrew Kozlik
9ebfa936c0
docs(legacy/firmware): Fix dates in changelog.
2021-06-11 20:22:42 +02:00
Martin Milata
362504dfcd
docs(legacy/firmware): changelog for blake256 fix
2021-06-11 20:22:42 +02:00
matejcik
97f49cf336
fix(legacy): fix protobuf build [no changelog]
2021-06-08 09:55:19 +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
Martin Milata
3976ef7261
chore(legacy/firmware): bump version to 1.10.2
...
[skip_ci]
2021-06-02 12:50:22 +02:00
Martin Milata
5f2b7b231b
docs(legacy/firmware): changelog for 1.10.1
2021-05-24 18:58:48 +02:00
Andrew Kozlik
2dbde040c4
feat(legacy): Add safety_checks setting.
2021-05-24 17:47:43 +02:00
Ondřej Vejpustek
34f5d508b0
refactor(legacy): move wait_random into separate file
2021-05-21 13:42:53 +02:00
Pavol Rusnak
e09a74a79e
refactor(legacy): rename check_bootloader to check_and_replace_bootloader
2021-05-13 17:59:39 +02:00
Martin Milata
ca5d173071
docs(legacy/firmware): changelog for 1.10.0
2021-05-13 14:35:54 +02:00
Martin Milata
97aa0fb517
docs(legacy/firmware): use towncrier for generating CHANGELOG.md
2021-05-04 14:18:01 +02:00
Martin Milata
f58c1634c6
docs(core): use towncrier for generating CHANGELOG.md
2021-05-04 14:18:01 +02:00
Tomas Susanka
300c27abb8
chore(legacy): bump version to 1.10.1; add soft-reset to changelog
2021-04-23 15:47:17 +02:00
Tomas Susanka
e82aacbc7c
docs(legacy/changelog): add note on bootloader
2021-04-22 09:41:58 +02:00
Pavol Rusnak
f93a8514e8
fix(legacy): update embedded bootloader hash
2021-04-21 16:00:09 +02:00
Pavol Rusnak
73ae44f500
fix(legacy): rebuild bundled bootloader (deterministically)
2021-04-19 18:32:47 +02:00
Pavol Rusnak
0d37824b01
fix(legacy): show dialog before rebooting to bootloader
2021-04-15 18:01:09 +02:00
Alexis Hernandez
bb1c638d3b
legacy: Update op_return max size to 150 bytes
...
The goal is to allow Trezor 1 to create TPoS contracts for Stakenet.
Last year, Stakenet introduced a hard-fork [1] to change the way TPoS contracts
are created, instead of a custom signature method, now it works with the
output from the signMessage method, while this works for Trezor T, it doesn't
work for Trezor 1 due to the 80 bytes limit on the OP_RETURN output while
Stakenet allows up to 150 bytes [2], in a gitter discussion [3] we concluded that
the change should be fine.
The hard-fork was introduced because we couldn't got our TPoS contracts PR accepted [4],
the OP_RETURN still contains the same data, its just stored in a different way:
- The TPoS address, where the coins to stake are stored, and where rewards are received.
- The merchant address, where the merchant receives its commission.
- The contract commission.
- The TPoS collateral signature (this is what uses the signMessage now).
At last, there is an example transaction creating a TPoS contract [5].
[1]: https://github.com/X9Developers/XSN/pull/154
[2]: https://github.com/X9Developers/XSN/blob/master/src/script/standard.h#L34
[3]: https://gitter.im/trezor/community?at=6064c41e940f1d555e2ea670
[4]: https://github.com/trezor/trezor-firmware/pull/140
[5]: https://xsnexplorer.io/transactions/858feb31097501cf68d698cde104cf778ec51ff3668e943404b549a5dd2f5792
2021-04-06 10:15:59 +02:00
Andrew Kozlik
a755e99ccc
feat(legacy): Display nLockTime in human-readable form.
2021-03-26 14:49:21 +01:00