matejcik
ef10457332
refactor(python/firmware): introduce legacy v3 signing detection
...
related, change verify() method to accept dev_keys bool and select
the appropriate keys, as opposed to caller needing to figure out the keys
2022-12-28 14:10:14 +01:00
matejcik
61a7e09bae
feat(python/firmware): introduce fw model field
2022-12-27 15:24:10 +01:00
matejcik
cd20ff242f
feat(python/firmware): introduce a cleaner database of signing keys
2022-12-27 15:23:57 +01:00
matejcik
5a237d6a94
feat(core/headertool): detect devel signatures for more objects ( fixes #2616 )
...
[no changelog]
2022-12-16 13:24:18 +01:00
grdddj
dc22f98aed
chore(python): better static typing for debuglink and emulator
...
[no changelog]
2022-11-21 14:08:47 +01:00
grdddj
e9a1bcc951
feat(python): add debuglink helpers to get layout information
2022-11-21 14:08:47 +01:00
matejcik
cc71f4f159
chore(python): bump version after release
2022-11-04 10:12:32 +01:00
matejcik
1cbe96c6e5
fix(python/internal): fix key index handling in firmware_headers.py
...
[no changelog]
2022-11-04 09:51:53 +01:00
Andrew Kozlik
3d645d609a
chore(common): Rename "unstable" protobuf tag to "experimental_message".
...
[no changelog]
2022-11-02 14:58:01 +01:00
matejcik
cda35e0e87
docs(python): add or update license headers
2022-11-01 14:56:00 +01:00
matejcik
ce307c9484
feat(common): mark CoSi fields as required
...
[no changelog]
2022-11-01 14:56:00 +01:00
matejcik
1afc78e368
feat(python): add warning for insecure CoSi firmware
2022-11-01 14:56:00 +01:00
matejcik
a7482f4c6a
refactor(python): convert firmware parsing to classes
2022-11-01 14:56:00 +01:00
matejcik
1b8204109e
refactor(python): move firmware functionality to a submodule
2022-11-01 14:56:00 +01:00
matejcik
a7d6e194a1
refactor(python): move out TOIF related structs to trezorlib.toif
2022-11-01 14:56:00 +01:00
grdddj
47a749d683
chore(proto): remove default value from NEM payload
...
[no changelog]
2022-11-01 10:57:27 +01:00
grdddj
fd1fbc9372
fix(python): add default value to protobuf.Field
...
[no changelog]
2022-11-01 10:57:27 +01:00
David Misiak
51a8e18c8d
feat(cardano): add preprod and preview testnets
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
Andrew Kozlik
afd900f9b1
feat(common): Add CoinJoin request message.
...
[no changelog]
2022-10-27 17:37:48 +02:00
Andrew Kozlik
5b453c88ed
feat(core): Add serialize option to SignTx.
2022-10-17 15:20:46 +02:00
grdddj
e0693d3a55
feat(python): add trezorctl possibility to record screen changes
2022-10-12 13:44:53 +02:00
Juliya Smith
cc49e2922d
fix(python): publish package types ( #2543 )
...
* fix: publish types to consumers
* chore: add changelog
2022-10-06 16:12:05 +02:00
Andrew Kozlik
448f97b736
feat(trezorctl): Support SLIP-25 accounts in get-public-node and get-address.
2022-10-04 20:17:56 +02:00
Andrew Kozlik
a047795d19
fix(trezorlib): Don't support preauthorized operations for get_public_node() and get_address().
...
[no changelog]
2022-10-04 20:17:56 +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
661ae37506
feat(tools): add toif conversion from greyscale with transparency (alpha channel)
...
[no changelog]
2022-09-09 22:58:10 +02:00
Andrew Kozlik
a394ac5bb4
feat(python): Support UnlockPath in trezorlib.
2022-08-30 15:53:44 +02:00
Andrew Kozlik
9d89c3cb1b
feat(common): Add UnlockPath message.
...
[no changelog]
2022-08-30 15:53:44 +02:00
grdddj
d5b0650cc2
feat(tests): add possibility to run device/UI tests in parallel
2022-08-29 15:47:36 +02:00
Andrew Kozlik
a3ac5d752e
feat(trezorctl): Add device set-busy command.
2022-08-22 18:15:29 +02:00
Andrew Kozlik
792dadfc4d
feat(common): Add SetBusy message.
...
[no changelog]
2022-08-22 18:15:29 +02:00
Andrew Kozlik
ad5a572b75
chore(common): Deprecate data field in CosiCommit message.
2022-08-02 20:38:04 +02:00
matejcik
a6410693b3
Revert "feat(core): implement firmware dumping"
...
This reverts commit 37c61c1381
.
2022-08-02 17:12:07 +02:00
matejcik
4c347b7acc
Revert "feat(python): implement firmware dumping"
...
This reverts commit ee694f36cf
.
2022-08-02 17:12:07 +02:00
matejcik
b01778c9ce
chore(python): bump version after release
2022-07-13 15:16:15 +02:00
matejcik
ff85e0f92d
fix(python): fix result_callback correctly this time
2022-07-13 15:14:33 +02:00
matejcik
9f69057b9b
fix(python): fix Click 7.x by passing explicit version to version_option
2022-07-13 15:12:12 +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
99a7c48e64
feat(cardano): add babbage data types
2022-07-04 15:58:27 +02:00
matejcik
f3bfdd41fe
chore(python): bump version after release
2022-06-30 20:18:25 +02:00
matejcik
63ab0711e2
fix(python): fix crashing trezorctl --version
...
fixes #1702
2022-06-30 15:56:06 +02:00
matejcik
3141f808dd
fix(python/trezorctl): do not implicitly import rlp on Python 3.6
2022-06-30 15:35:07 +02:00
matejcik
455884932e
fix(python): do not implicitly import PIL by trezorctl
2022-06-30 14:57:25 +02:00
matejcik
7d40f98153
chore(python): bump version after release
2022-06-30 13:13:43 +02:00
matejcik
8049282bdb
feat(python): detect busy device as a separate condition
...
fixes #1026
2022-06-29 14:35:16 +02:00
matejcik
aaa224a4f7
feat(python/trezorctl): detect script type from path ( fixes #2159 )
2022-06-29 14:35:16 +02:00
matejcik
c12e4edd70
fix(python/trezorctl): improve docs and behavior around unexpected messages
...
closes #2254
2022-06-29 14:35:16 +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
matejcik
5173cd3b82
fix(python): click 8.1 compatibility
...
fixes #2199
2022-06-29 14:35:16 +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
David Misiak
a1eaa465aa
chore(cardano): remove legacy types
2022-05-23 11:08:52 +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
Pavol Rusnak
38ad9ab9e5
fix(python): only even-width grayscale icons are supported
...
[no changelog]
2022-05-16 15:01:37 +02:00
Dusan Klinec
5e6582a3fe
feat(xmr): add support for HF15, BP+
2022-05-16 12:37:24 +02:00
matejcik
6feada2eed
style(python/monero): improve type signature on Monero functions
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
8e1b5a969c
feat(python): support model R in trezorlib
2022-05-06 11:44:52 +02:00
Andrew Kozlik
458d6e1b4b
fix(trezorctl): Fix BIP-32 path in CoSi help.
...
[no changelog]
2022-05-03 21:50:50 +02:00
matejcik
ee694f36cf
feat(python): implement firmware dumping
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
e43c14f448
feat(trezorctl): Add firmware get-hash command.
2022-05-03 19:00:04 +02:00
Andrew Kozlik
6fe2d76dc1
feat(common): Add GetFirmwareHash message.
2022-05-03 19:00:04 +02:00
grdddj
068e97c258
feat(python): unify option arguments in trezorctl
2022-03-24 14:30:20 +01:00
grdddj
d7d228e716
chore(python): limit click version to be below 8.1
2022-03-24 14:30:20 +01:00
David Misiak
117c3c932f
fix(cardano): update testnet protocol magic
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
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
Pavol Rusnak
edb87359eb
feat(core): headless emulator implies disabled animations
...
[no changelog]
2022-03-18 11:58:04 +01:00
Andrew Kozlik
8be6689150
chore(common): Rework AuthorizeCoinJoin message parameters.
...
[no changelog]
2022-03-17 15:46:01 +01:00
grdddj
a38a0b6295
fix(python): fix eth.sign-tx - correct input into rlp.encode()
...
[no changelog]
2022-03-16 16:09:07 +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
e0754d1609
fix(python/protobuf): correctly dump messages with missing required fields
2022-02-21 14:37:25 +01:00
grdddj
319d0f16e3
chore(python): loosen ethereum dependencies
...
[no changelog]
2022-02-18 18:40:47 +01:00
grdddj
58fb6c77a7
feat(python): add screenshotting capability for T1 in Debuglink
2022-02-17 11:05:55 +01:00
Ferdinando Ametrano
3c0cb4d763
feat(python): extend sign_message to also sign bytes, not only string
2022-02-15 14:27:59 +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
bf2baf798f
feat(trezorctl): Support generating Electrum-compatible message signatures.
2022-02-11 15:36:00 +01:00
Andrew Kozlik
f6154b311e
chore(trezorlib): Support payment requests and GetNonce command.
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
0959947a88
chore(common): Add GetNonce, Nonce and TxAckPaymentRequest message.
...
[no changelog]
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
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
8b2e2112bc
style(python/btc): better specification of type of prev_txes
...
[no changelog]
2022-01-13 13:01:17 +01:00
grdddj
e3d366e65b
feat(python): ScriptUI for trezorctl, reference client implementation
2022-01-12 14:52:01 +01:00
matejcik
dfab3efb86
style(python): fix typecheck issues
...
[no changelog]
2022-01-07 21:41:17 +01:00
Pavol Rusnak
b0e0280465
chore: drop obsolete fw_vendor_keys field from Features
...
[no changelog]
2022-01-03 14:23:58 +01:00
Alisina Bahadori
77ab865386
feat(legacy): Implement EIP-712 signing
2021-12-19 20:36:30 +01:00
matejcik
38d44e6803
chore(python): bump trezorlib version in repo
2021-12-10 10:54:04 +01:00
matejcik
b343ad3931
style(python): mark Reader/Writer protocol arguments as position-only
...
Using `__`-prefixed names seems to be a convention for specifying
position-only arguments before Python 3.8. Pyright respects this
convention and in fact requires it since version 1.1.192.
2021-12-08 10:00:48 +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
38fca4a83d
chore(python): regenerate GNU copyright headers
2021-12-07 16:55:58 +01:00
matejcik
83bb3a0932
feat(python): show progress bar for firmware upload
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
Andrew Chow
dbf57d745a
feat(python): Optionally init_device in TrezorClient
2021-12-07 16:55:58 +01:00