Jun Luo
543b9f407c
refactor(python/stellar): Use Stellar Python SDK to parse Stellar transactions.
...
As a side effect, support for TransactionV1 format transaction is added.
2021-08-06 13:14:57 +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
Ondrej Mikle
e4be53459d
docs(core/debug): documentation on debugging with SystemView/RTT
2021-08-06 09:54:21 +02:00
Christian Reitter
ba8eb408ea
crypto: new iteration of fuzz testing code, improved dictionary script, minor documentation changes
2021-08-05 17:03:04 +02:00
Christian Reitter
78f879aaf1
crypto: improve fuzz testing code, harnesses, documentation and scripts
2021-08-05 17:03:04 +02:00
gabrielkerekes
4f7c6b3586
feat(common): change all protobuf message type hints to strings
...
In order to support recursive protobuf messages, which will be needed by Cardano's native scripts.
[no changelog]
2021-08-05 12:10:30 +02:00
matejcik
725d1bd961
docs(core): add changelog entry
2021-08-04 15:03:11 +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
9ab1891b22
feat(common): more required fields in messages-management
...
[no changelog]
2021-08-04 15:03:11 +02:00
matejcik
31be44b5cd
chore(core): use micropython checkout without submodules
2021-08-04 15:01:53 +02:00
matejcik
0e650b1a5b
fix(python): do not set socket to nonblocking for wait_until_ready
...
There's two udp calls in `UdpTransport._ping()`:
- socket.sendall(b"PINGPING") -> this will be instanteous, AND it will
raise if the receiving side is not listening.
- socket.recv() -> this will wait for SOCKET_TIMEOUT seconds, but only
in case the sendall() succeeded. This means that receiving side exists
and we are now waiting until it's awake enough to respond.
In conclusion, we avoid hammering emulator with PINGPINGs with a timeout
so short we don't see an answer. This should avoid the problem
occasionally seen in CI and described in #1668
2021-08-04 10:58:59 +02:00
matejcik
34047cf3ec
Revert "feat(python): give the emulator a little more time to respond to ping"
...
This reverts commit ae0da5e245
.
It seems that there was no good reason for the change in the first
place.
2021-08-04 10:58:59 +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
92e9d61e24
feat(python/debuglink): reset_debug_features to reconfigure debuglink
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
33a9a14eab
feat(legacy/emulator): avoid busy loop when waiting for messages
2021-08-04 10:58:15 +02:00
matejcik
1d4c061e3e
docs(python): update changelog for 0.12.3
2021-07-30 10:18:43 +02:00
matejcik
2ab8972cf2
build(python): drop changelog target from makefile
2021-07-29 15:32:42 +02:00
matejcik
e7c40c9560
feat(python/trezorctl): trezorctl device reboot-to-bootloader
2021-07-29 15:32:42 +02:00
matejcik
347d11e6ea
chore(python): allow click 8.x for trezorlib
2021-07-28 16:17:27 +02:00
matejcik
0e14291094
chore(tests): regenerate UI test fixtures
2021-07-26 14:48:35 +02:00
matejcik
5dcb51458f
chore(core/ui): drop no longer used confirm_proposals_tezos
2021-07-26 14:48:35 +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
f3802dea61
fix(tests/ui_tests): if a UI test result changed, show it as new
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
matejcik
dcc38f5267
refactor(core/ui): replace confirm_hex, clarify API
...
Truncation options were removed.
Subtitle distinct from description was removed.
confirm_hex was replaced by confirm_blob. You should use confirm_blob
when displaying data that is not human readable and can be broken at any
character.
Also it is now possible to pass bytes, which are automatically converted
to hex.
For displaying addresses, a separate confirm_address is introduced,
which simply delegates to confirm_blob, but has a more limited
signature.
Analogously, there is confirm_text for text data (should maybe be used
in many places where we currently use confirm_metadata) and a
specialized confirm_amount.
2021-07-26 14:48:35 +02:00
matejcik
6d15e90ed3
refactor(core/ui): reorganize line width constants
2021-07-26 14:48:35 +02:00
vdovhanych
9ffbd34400
fix(ci): gh actions set to fetch all history for changelog check
2021-07-26 13:40:33 +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
matejcik
cb882df100
feat(core): in debug mode, dump contents of received protobuf messages
...
[no changelog]
2021-07-23 11:46:24 +02:00
Martin Milata
8da978981e
perf(core): share wire buffer between wire and debuglink
...
[no changelog]
2021-07-22 15:12:22 +02:00
Martin Milata
582e1318c4
feat(core/emulator): support protobuf messages in memory dumps
...
[no changelog]
2021-07-22 13:31:11 +02:00
Andrew Kozlik
c1843f9f9f
style(legacy): Remove nested conditional operators.
2021-07-22 10:54:49 +02:00
Andrew Kozlik
334103b089
refactor(core/crypto): Optimize DER encoding of signatures.
2021-07-22 10:54:49 +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