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
Jan Pochyla
b139e1a7ac
ui/passphrase: align long passphrase to the right
2018-02-06 14:11:49 +01:00
Jan Pochyla
deb64c3c43
ui/passphrase: confirm button, visuals
2018-02-06 14:11:49 +01:00
Jan Pochyla
1c9380a9d9
ui/passphrase: extract new passphrase keyboard
2018-02-06 14:11:49 +01:00
Peter Jensen
7b89e4b14c
ui/passphrase: ask for source of passphrase
2018-02-06 14:11:49 +01:00
Jan Pochyla
58f48f8ade
apps/management/reset_device: fix change_pin
2018-02-05 15:13:33 +01:00
Peter Jensen
f56aaa3b1c
ui/pin: check maxlength
2018-02-05 15:06:43 +01:00
Peter Jensen
9c84b742a0
ui/pin: change design of pin bullets
2018-02-05 15:01:26 +01:00
Jan Pochyla
ac0be4b061
ui/scroll: tweak swipe animation
2018-02-05 14:55:03 +01:00
Jan Pochyla
f20ce1fcc9
ui: add click helper
2018-02-05 13:49:02 +01:00
Jan Pochyla
6a0f18bef1
ui/loader: shrink before deactivating
2018-02-05 13:49:02 +01:00
Pavol Rusnak
46fc37f977
src: fix flake whitespace issues
2018-02-04 12:18:34 +01:00
Peter Jensen
ea6763c4ec
ui/word_select: fix btns styles
2018-02-02 16:27:04 +01:00
Peter Jensen
fac8932a85
ui/style: replace success icon in loader
2018-02-02 16:27:04 +01:00
Peter Jensen
b64be539d4
apps/managment/wipe: style btns and elements
2018-02-02 16:27:04 +01:00
Peter Jensen
dc5049a3d6
ui/swipe: update reset ui and swipe
2018-02-02 16:20:28 +01:00
Jan Pochyla
6f8a4de4e6
ui/scroll: make page indicators more visible
2018-01-31 15:53:32 +01:00
Jan Pochyla
9c469d583a
apps/management/reset_device: split into smaller functions
...
TODO: device test
2018-01-30 19:24:57 +01:00
Jan Pochyla
64d5f18ed6
ui/text: simplify
2018-01-30 19:08:51 +01:00
Jan Pochyla
710306495e
apps: reduce unimport usage
...
unimport should be used only on the workflow dispatchers.
2018-01-30 18:50:59 +01:00
Jan Pochyla
898b33cffb
ui: speed up backlight transitions
2018-01-30 18:04:01 +01:00
Peter Jensen
5f1632c5fa
pin/ui: fix clear canvas layer
2018-01-26 12:30:45 +01:00
Peter Jensen
acf9d789c7
ui/confirm: correct button positions
2018-01-22 17:52:31 +01:00
Peter Jensen
44ca1ea703
apps/management/reset_device: update styles
2018-01-22 17:52:31 +01:00
Peter Jensen
b5220e8675
apps/management/reset_device: add icons and warning
2018-01-22 17:52:31 +01:00
Jan Pochyla
7960f3ad8e
loop: use utimeq.discard()
2018-01-22 13:07:21 +01:00
Jan Pochyla
23728c2713
loop: make wait properly dispose of child tasks
2018-01-18 17:45:44 +01:00
Peter Jensen
150da5d40c
ui/keyboard: move pending marker
2018-01-16 15:46:32 +01:00
Jan Pochyla
cd0fa4df4a
ui/keyboard: refactor
2018-01-16 15:46:32 +01:00
Jan Pochyla
4a83864593
ui/confirm: fix content in HoldToConfirmDialog
2018-01-16 15:46:32 +01:00
Jan Pochyla
248daa8970
ui/button: styles, refactoring
2018-01-16 15:46:32 +01:00
Jan Pochyla
5ed83f0e18
ui/text: add icon_color
2018-01-16 15:46:32 +01:00
Jan Pochyla
814de4acb4
ui/style: colors and icons
2018-01-16 15:46:32 +01:00
Jan Pochyla
dbed5eade9
ui: add grid function
2018-01-16 15:46:32 +01:00
Peter Jensen
ed9e63142d
ui: request_words, keyboard ui
2018-01-16 15:46:32 +01:00
Jan Pochyla
95db112d10
apps/management/recovery_device: mnemonic keyboard
2018-01-16 15:46:32 +01:00
Pavol Rusnak
a31c118d8e
protobuf: update build_protobuf and pb2py from python-trezor, regenerate messages
2018-01-12 13:11:22 +01:00
Pavol Rusnak
b98a1db6ee
embed: cleanup unused modules
2018-01-02 20:00:12 +01:00
Pavol Rusnak
fa95f0a037
trezor.crypto: implement chacha20poly1305 aka rfc7539
2018-01-02 18:57:23 +01:00
Tomas Susanka
1f677306a1
ethereum/signing: streaming; all tests passing
2017-12-22 17:10:28 +01:00
Tomas Susanka
dc02b322bf
ethereum/signing: basic structure, first test passing
...
first commit based on the trezor-mcu repo
eth tokens added using the common ethereum_tokens-gen.py script
first device test passing
2017-12-22 17:10:28 +01:00
Pavol Rusnak
333c0a633a
trezor.crypto: adopt crc32 function
2017-12-19 21:54:22 +01:00
Pavol Rusnak
4584861385
trezor.ui: introduce ui.SIZE
2017-12-16 14:50:28 +01:00
Pavol Rusnak
edb80eda61
src: fix typo
2017-12-15 21:11:46 +01:00
Pavol Rusnak
5192387060
src: move show_pin_timeout to trezor.pin
2017-12-15 21:06:29 +01:00
Jochen Hoenicke
c0cd252c83
Store pin as integer
...
- New module trezor.pin (add timeout here)
- Convert pin to integer by adding a '1' (to detect leading 0s)
- pin is still limited to 9 digits.
2017-12-15 20:37:03 +01:00
Pavol Rusnak
70ac202d7a
modtrezorcrypto: add trezor.crypto.hashlib.blake256
2017-12-13 20:47:12 +01:00
Pavol Rusnak
16bc1c6cb6
src: fix flake8 style
2017-12-09 18:38:36 +01:00
Pavol Rusnak
f88080b904
Merge branch 'pin_fails'
2017-12-07 15:29:47 +01:00
Pavol Rusnak
04d980f8f0
add Features.model field (set to "T")
2017-12-04 22:40:42 +01:00
Tomas Susanka
2ebf1cd9f4
trezor/crypto: bech32
...
taken from https://github.com/sipa/bech32/tree/master/ref/python
2017-11-23 16:30:11 +01:00
Jan Pochyla
a255938903
main: unlock storage after boot
2017-11-05 21:04:47 +01:00
Jan Pochyla
3ea5b9c151
trezor/ui: close backlight slider properly
2017-10-10 15:35:01 +02:00
Jan Pochyla
04acab723a
trezor/loop: add loop.close()
2017-10-10 15:35:01 +02:00
Jan Pochyla
3483c149a5
loop: fix unschedule
2017-10-10 11:49:14 +02:00
Jan Pochyla
fda9f584e8
trezor/ui/scroll: add Scrollbar widget
2017-10-09 15:34:55 +02:00
Jan Pochyla
72591e053a
trezor/ui: style changes
2017-10-09 15:34:55 +02:00
Jan Pochyla
23fecb0ce4
trezor/ui/loader: fix icon
2017-10-09 15:34:55 +02:00
Jan Pochyla
8ec8615e89
trezor/ui: make layout crossfade faster
2017-10-09 15:34:55 +02:00
Jan Pochyla
a09e64090c
trezor/ui/swipe: rework thresholds
2017-10-09 15:34:55 +02:00
Jan Pochyla
e923b885af
fix style
2017-10-03 12:29:46 +02:00
Jan Pochyla
c254758c83
Revert "trezor/loop: optimization"
...
This reverts commit cfa1705a88
.
In MicroPython, list.clear() does not memset the backing buffer, preventing the
paused tasks from being garbage collected.
2017-10-02 16:18:27 +02:00
Jan Pochyla
cfa1705a88
trezor/loop: optimization
...
Re-cycle queue of paused tasks by clear()ing it rather than pop()ing it out of the dict.
2017-10-02 11:59:30 +02:00
Jan Pochyla
f22edd7609
trezor/ui/confirm: in HoldToConfirm, stop when button is not active
2017-10-02 11:59:30 +02:00
Peter Jensen
027cc49f47
added icons to buttons
2017-09-26 17:05:53 +02:00
Jan Pochyla
808317424d
use trezor.ui.{BG,FG}
2017-09-26 12:05:26 +02:00
Jan Pochyla
2c73a3f0a8
trezor/ui/style: add BG/FG styles
2017-09-26 12:05:26 +02:00
Jan Pochyla
df995eae49
trezor/ui: add experimental layout decorator
2017-09-26 12:05:26 +02:00
Jan Pochyla
305d4d9cc5
trezor/ui/swipe: improve dimming
2017-09-26 12:05:26 +02:00
Jan Pochyla
f2e53ab2eb
trezor/ui: extract styles
2017-09-26 12:05:26 +02:00
Pavol Rusnak
ef5f1326dc
build: use python3 everywhere
2017-09-25 16:18:31 +02:00
Jan Pochyla
3379c94598
apps/common/request_pin: add support for 0
2017-09-21 15:57:08 +02:00
Jan Pochyla
49cc4651c2
bunch of api cleanups
2017-09-19 23:47:35 +02:00
Jan Pochyla
a8e51ceda3
loop: whitespace
2017-09-06 15:43:57 +02:00
Pavol Rusnak
82ae061922
style: add newline to file
2017-09-02 23:10:54 +02:00
Jan Pochyla
112893c46f
log: less colors
2017-08-21 13:31:45 +02:00
Jan Pochyla
a235a6b38b
all: docs, logging
2017-08-21 13:22:35 +02:00
Jan Pochyla
3db1bf89fa
remove trezor.main, simplify trezor.workflow
2017-08-16 15:02:03 +02:00
Jan Pochyla
bc9beaf5d8
wire: fix Context.call
2017-08-15 18:14:14 +02:00
Jan Pochyla
3562ffdc54
wire: pass Context to apps
2017-08-15 18:14:14 +02:00
Jan Pochyla
552444c856
remove src/lib
2017-08-15 18:14:14 +02:00
Jan Pochyla
d2781d030d
msg: rename to io
2017-08-15 18:14:14 +02:00
Jan Pochyla
1f90e781d5
wire: simplify, use async codecs
2017-08-15 18:14:14 +02:00
Pavol Rusnak
fe5b5c1940
tests: update to pytest, regenerate protobuf
2017-07-28 18:58:31 +02:00
Jan Pochyla
915cf849e9
trezor.msg: remove select, add poll
...
TODO: decide if we want to continue polling on interface numbers, or rather on usb/touch file objects
2017-06-26 16:03:20 +02:00
Pavol Rusnak
886c3a0a11
modtrezorcrypto: use lowercase QSTRs so we don't have to 'import as'
2017-06-23 17:50:45 +02:00
Jan Pochyla
afd65833cb
trezor.crypto: rework for new structure
2017-06-20 17:45:34 +02:00
Jan Pochyla
4127655584
trezor.ui.loader: make target parametric
2017-06-20 17:45:34 +02:00
Pavol Rusnak
ce6dca8ed5
trezor.io: rework for new structure
2017-06-20 14:14:47 +02:00
Pavol Rusnak
acb68dc429
trezor.config: rework for new structure
2017-06-20 13:30:02 +02:00
Jan Pochyla
3318ed22f5
trezor.ui.confirm: content is required
2017-06-20 12:03:36 +02:00
Jan Pochyla
bcd94ecbc1
trezor.ui: rework HoldToConfirmDialog
...
Fixes flickering while idle.
2017-06-20 12:03:36 +02:00
Pavol Rusnak
365fd404b1
src: fix style
2017-06-18 23:32:47 +02:00
Jan Pochyla
5b9ef8813a
trezor.utils: fix for mypy, remove genfunc
2017-06-14 19:34:23 +02:00
Jan Pochyla
803c47dca8
extmod: use lowercase names
2017-06-14 18:51:55 +02:00
Pavol Rusnak
73b2ea6c85
travis: add make style (using flake8)
2017-06-13 19:35:34 +02:00