Jan Pochyla
2b66deb3d6
ui.text: type -> normal
2018-07-03 16:49:52 +02:00
Jan Pochyla
f74a29b56a
ui.text: remove old API
2018-07-03 16:49:52 +02:00
Jan Pochyla
49e75851c7
ui.text: add mutable API
2018-07-03 16:49:52 +02:00
Pavol Rusnak
ac5e3f200a
src: rename wire_types to MessageType, drop copy in tools/build_protobuf
2018-07-02 20:40:51 +02:00
matejcik
28e2970cfb
vendor: update trezor-common, regenerate messages
2018-07-02 20:19:16 +02:00
Jan Pochyla
6e13a1475b
ui: introduce LazyWidget
...
Used in Button and Text.
2018-07-02 15:30:32 +02:00
Pavol Rusnak
9f90ca21a9
src/apps/wallet/sign_tx: fix bip115 code in last commit
2018-07-02 14:29:58 +02:00
idimon4uk
3b345f3c76
src/apps/wallet/sign_tx: add Zencash support ( #252 )
2018-07-02 14:16:26 +02:00
Pavol Rusnak
6ab2b5d6ee
vendor: update trezor-common
2018-06-28 14:00:53 +02:00
Pavol Rusnak
3d796b971a
src/apps/wallet/sign_tx: refactor address_short function
2018-06-28 11:21:07 +02:00
Jan Pochyla
88744d2450
wire: remove codec_v2.py
2018-06-21 15:51:36 +02:00
Jan Pochyla
1bfbb34f88
src/trezor/loop: avoid closing task from within
2018-06-19 18:26:43 +02:00
Jan Pochyla
7630201a57
debug: do not rely on mp_optimise_value
...
Reflects micropython commit 3f420c0c27bd6daa5af39517925be55b9b9a9ab3
Replaces usage of mp_optimise_value with calls from python code.
2018-06-19 18:26:43 +02:00
Pavol Rusnak
97bb26b7f3
embed/extmod/modtrezorcrypto: use kwargs for Blake2b/Blake2s
2018-06-19 18:15:58 +02:00
Jan Pochyla
8e270fbabd
src/trezor/ui/text: fix layout issues
2018-06-18 17:49:16 +02:00
Jan Pochyla
2603c477c5
embed/extmod/modtrezorui: distinguish font ids from colors
2018-06-08 14:53:46 +02:00
Jan Pochyla
c9a58ba22c
trezor.ui.text: add work break and configurable new_lines
...
Now it is possible to combine multiple font styles per line,
a nd to manually control line breaks with trezor.ui.text.BR.
2018-06-08 14:53:46 +02:00
Jan Pochyla
f72667c761
Merge pull request #217 from alepop/restore-lisk-sign-verify-message
...
Lisk sign/verify functionality
2018-06-07 15:55:21 +02:00
Aleksey Popov
de552b19f5
app.lisk: update LiskVerifyMessage message
2018-06-07 15:26:59 +03:00
Aleksey Popov
caffef2e0a
app.lisk: restore sign and verify functions with correct message digest (with prefix)
2018-06-06 23:53:15 +03:00
Tomas Susanka
33ac5de848
wallet/nem: basic modtrezorcrypto for nem
2018-06-06 17:24:06 +02:00
Pavol Rusnak
a5952d16db
src/apps/wallet/sign_tx: more changes for zcash overwinter
2018-06-06 16:53:36 +02:00
Pavol Rusnak
dfd02821af
src/apps/wallet: add support for zcash overwinter
2018-06-05 16:04:23 +02:00
Pavol Rusnak
4d1b2f0ca5
vendor: update trezor-common
2018-06-05 13:37:17 +02:00
Pavol Rusnak
307f7baecf
fix flake8 issues
2018-05-28 15:23:37 +02:00
Tomas Susanka
bb57000449
src/trezor/crypto: add trezor.crypto.base32
2018-05-25 16:09:05 +02:00
Pavol Rusnak
0cd3e411f4
src/apps/wallet/sign_tx: implement cashaddr
2018-05-24 16:38:56 +02:00
Pavol Rusnak
5885cb867e
src/trezor/messages: regenerate messages
2018-05-24 15:41:57 +02:00
Pavol Rusnak
ffc2bf30b8
src: remove CoinType usage, usage internal CoinInfo instead
2018-05-24 15:18:05 +02:00
Aleksey Popov
59e6e49111
protob: Generate new messages
2018-05-23 11:47:07 +02:00
Pavol Rusnak
577cb361dc
src/trezor/crypto: add cashaddr support
2018-05-22 17:47:54 +02:00
Jan Pochyla
db696b23fd
src/trezor/wire: add exceptions for all defined FailureTypes
...
Makes the error API much more ergonomic.
2018-04-23 16:12:44 +01:00
Jan Pochyla
074e7c1b9b
src/main: simplify, extract USB code into usb.py
2018-04-16 17:17:45 +02:00
Jan Pochyla
e223173b4e
loop: wait -> spawn, select -> wait
...
select was a bit confusing name, as we always block on only one
interface.
2018-04-13 14:57:04 +02:00
Jan Pochyla
ebf4d2035e
src/trezor/utils: fix warnings in unimport_end
2018-04-05 17:01:21 +02:00
Jan Pochyla
60bec0b4d1
src/trezor/wire: allow passing MessageType classes to register()
2018-04-05 12:34:51 +02:00
Jan Pochyla
2731742d34
src/trezor/messages: allow registration of custom messages
2018-04-05 12:34:51 +02:00
Pavol Rusnak
eff139e4fc
style: fix flake8 warning
2018-04-04 01:22:40 +02:00
Jan Pochyla
04680f4bbf
src/trezor/wire: clean up after workflows
2018-04-03 20:39:26 +02:00
Jan Pochyla
b38d6870eb
src/trezor/utils: replace unimport with explicit fns, remove parent references
2018-04-03 20:39:26 +02:00
Jan Pochyla
25ae6bba51
src/trezor/ui/word_select: use apps.debug.input_signal
2018-03-22 15:31:36 +01:00
Jan Pochyla
6c9c563323
pin: simplify label code
2018-03-20 16:48:45 +01:00
Jan Pochyla
01bc12ec27
src/apps/debug: simplify debuglink, add more decision/state fields
...
- move data exported over debuglink into apps.debug
- move debug signals into apps.debug
- make pin/mnemonic dialogs testable
- streamline code style of apps.management.reset_device
- check __debug__ when debug app starts
2018-03-20 16:48:45 +01:00
Jan Pochyla
f9c51af32f
src/trezor/loop: cleanup signal in case of task failure
2018-03-20 16:48:45 +01:00
Pavol Rusnak
b83ffee3af
src/apps/common: implement unfinished_backup flag in the storage
2018-03-12 16:22:56 +01:00
Pavol Rusnak
e6bfd192e5
src/apps/common: implement passphrase_source and use it
2018-03-12 15:27:30 +01:00
Pavol Rusnak
2f440f17d3
Revert "trezor/utils: refactor 'serialize_identity()'"
...
This reverts commit de217f75df
.
2018-03-11 22:57:39 +01:00
Roman Zeyde
de217f75df
trezor/utils: refactor 'serialize_identity()'
2018-03-11 22:53:47 +01:00
Jochen Hoenicke
8cdec0652e
Ethereum: Fix fee computation.
...
- Gas is always in ether, even when sending tokens.
- Fee is computed by multiplying gas limit with gas price.
- Parse numbers already in sign_tx.
- Made rlp.encode non-recursive (also fixes not passing include_length).
2018-03-08 18:49:28 +01:00
Jochen Hoenicke
ffe151459b
passphrase: include all ASCII characters
2018-03-07 12:16:21 +01:00
Pavol Rusnak
611d374bbd
embed: rename TREZOR_STM32/UNIX to TREZOR_MODEL_T/EMU, introduce trezor.utils.model()
2018-03-04 12:59:16 +01:00
Pavol Rusnak
c7c5f55508
src/apps/ethereum: fix layout for values around 1e9 Wei
2018-03-03 23:37:21 +01:00
Pavol Rusnak
63773e99b7
src/trezor/workflow: fix last commit
2018-03-01 05:24:57 +01:00
Jan Pochyla
eda280213f
src/apps/fido_u2f: fix confirmation, refactor
2018-03-01 05:14:02 +01:00
Jan Pochyla
f74cbead5e
src/trezor/ui/passphrase: fix removing last character
2018-03-01 05:13:17 +01:00
Pavol Rusnak
144e2013bd
src/apps/management: reset_device with no layout resets homescreen
2018-03-01 05:03:23 +01:00
Pavol Rusnak
c937d73217
src: minor visual nits
2018-03-01 01:13:26 +01:00
Pavol Rusnak
2e3dc8b29d
src/apps/common: rework PassphraseState behaviour
2018-03-01 00:07:45 +01:00
Pavol Rusnak
67d835fd3e
src: make flake8 happy
2018-02-28 18:25:04 +01:00
Jan Pochyla
8ac915e75f
src/trezor/wire: make sure the writes succeed
2018-02-28 17:17:09 +01:00
Jan Pochyla
8f1ed5edce
src: handle wire msgs while waiting for ui
2018-02-28 17:17:09 +01:00
Jan Pochyla
0c42976e91
src/trezor/ui: fix default parameters for header
2018-02-28 01:49:06 +01:00
Peter Jensen
e43ce25611
src/trezor/ui/style: update resources and icons in dialogs
2018-02-27 23:52:49 +01:00
Jan Pochyla
20ca86229c
src/trezor/ui/passphrase: fix rendering invalidation
2018-02-27 21:50:54 +01:00
Jan Pochyla
9f48e3d471
request_pin, request_passphrase: ui fixes
2018-02-27 20:21:54 +01:00
Jan Pochyla
a4081bab72
src: move HashWriter to trezor.utils
2018-02-27 16:35:28 +01:00
Pavol Rusnak
d6563a213c
vendor: update trezor-common
2018-02-27 15:54:21 +01:00
Pavol Rusnak
91dc487dcd
src/apps/wallet: use max_lines in Text component
2018-02-27 15:04:03 +01:00
Pavol Rusnak
865070d083
src.trezor.utils: split long words in split_words
2018-02-27 14:52:21 +01:00
Jan Pochyla
f6e06b768d
src/trezor/messages: regenerate
2018-02-27 12:04:54 +01:00
Pavol Rusnak
2854583b52
trezor.utils: rework split_words, use it in CipherKeyValue and Sign/Verify Message layouts
2018-02-27 03:33:59 +01:00
Pavol Rusnak
9c7ddba217
src+tests: use flake8 F401 to detect unused imports
2018-02-27 03:05:15 +01:00
Pavol Rusnak
2be0a4d31a
src/apps/common: raise on unsupported script type, change layout
2018-02-27 02:37:35 +01:00
Jan Pochyla
323714dc61
src/trezor/wire: disable v2 codec
2018-02-27 02:09:04 +01:00
Pavol Rusnak
be79a8cff4
src+tests: make flake8 happy; explicitly mark E722 ignores (bare excepts)
2018-02-27 00:31:33 +01:00
Peter Jensen
5d992c45c7
apps/wallet/cipher_key_value: added confirm dialog and text breaking
2018-02-27 00:14:21 +01:00
Jan Pochyla
0c9cc99bd7
src/trezor/messages: regenerate
2018-02-27 00:12:44 +01:00
Pavol Rusnak
b97e5b7a55
src/trezor/ui: use ICON_DEFAULT by default, not ICON_RESET
2018-02-26 23:00:50 +01:00
Jan Pochyla
54128b7568
src/apps/common: use ui.layout, clear display when layout starts
2018-02-26 18:40:44 +01:00
Jan Pochyla
031d20b25f
apps/common/request_passphrase: code style
2018-02-26 18:28:06 +01:00
Peter Jensen
375402db67
src/trezor/ui/loader: fix clear
2018-02-26 18:04:33 +01:00
Pavol Rusnak
ee242ea416
src.trezor.messages: fix and regenerate
2018-02-26 17:20:48 +01:00
Jan Pochyla
b9c111f6ae
tools: add init method to messages
2018-02-26 16:13:00 +01:00
Pavol Rusnak
6fd7782ac7
src/apps/management: use format_ordinal in reset and recovery workflows
2018-02-25 15:05:32 +01:00
Pavol Rusnak
872c44c477
src/trezor: change textation of pin dialog
2018-02-25 14:43:41 +01:00
Pavol Rusnak
db141fbc14
src/trezor: rework PIN progress update
2018-02-25 02:30:33 +01:00
Pavol Rusnak
35e1135c95
embed/extmod/modtrezorutils: add symbol() func
...
to expose internal C symbols, usually defined as macros
2018-02-23 21:27:26 +01:00
Pavol Rusnak
21bb815945
embed/trezorhal: move mpu to trezorhal - enable it in firmware
2018-02-23 19:08:34 +01:00
Pavol Rusnak
d9324f3e57
src/trezor/ui: split ui.SCREEN into ui.WIDTH and ui.HEIGHT
2018-02-22 16:44:46 +01:00
Jan Pochyla
168cbabbf5
src/trezor/ui/word_select: remove 15-word variant
2018-02-22 15:19:31 +01:00
Jan Pochyla
213e1b32ec
src/trezor/ui/keyboard: don't confirm empty words
2018-02-22 15:19:11 +01:00
Peter Jensen
c34ee98731
src/apps/wallet/get_address: update receive dialog
2018-02-19 17:28:58 +01:00
Jan Pochyla
0592cfe356
src/apps/homescreen: rework backlight animations
2018-02-19 16:51:59 +01:00
Pavol Rusnak
75e87ede86
vendor: update trezor-common, regenerate messages
2018-02-14 18:15:18 +01:00
Peter Jensen
b8cf98b78b
src/trezor/ui/passphrase: keyboard fix multitouch on space
2018-02-12 12:58:00 +01:00
Peter Jensen
a83d7b9067
src/trezor/ui/passphrase: added space btn icon to keyboard
2018-02-11 14:09:54 +01:00
Pavol Rusnak
6fad2f4283
src/apps/homescreen: implement {Initialize,Features}.state field, implement ClearSession handling
2018-02-09 18:08:59 +01:00
Pavol Rusnak
b0242d3a3e
tests: fix test_apps.ethereum.layout
2018-02-09 13:36:08 +01:00
Pavol Rusnak
984327fea5
src/trezor/ui: add new BTN_KEY_CONFIRM style to mnemonic keyboard, use that one
2018-02-07 19:48:32 +01:00
Pavol Rusnak
fedfde7e99
src/trezor: refactor format_amount into utils, use it where possible
2018-02-06 18:35:14 +01:00