Jan Pochyla
abd20741f6
add seed module, GetPublicKey now works
2016-10-06 15:05:14 +02:00
Jan Pochyla
492e71f147
workflow: less verbose naming
2016-10-06 15:05:14 +02:00
Jan Pochyla
6d5514ac4a
make logging less verbose
2016-10-06 15:05:14 +02:00
Jan Pochyla
c019741c33
wire: fix write_message, pbuf dumps is sync now
2016-10-06 15:05:14 +02:00
Jan Pochyla
4b0da8677a
wire: fix read_message for v1 protocol
2016-10-06 15:05:14 +02:00
Jan Pochyla
c3ee7dd709
loop: refresh display after every step
2016-10-06 15:05:14 +02:00
Pavol Rusnak
7dc53219d2
extract common bootloader stuff into bl_common.py
2016-10-05 21:09:45 +02:00
Pavol Rusnak
e405a6305d
use bar_radius where needed
2016-10-05 20:36:28 +02:00
Pavol Rusnak
a536e2d6a5
loader is now smaller
2016-10-05 15:15:21 +02:00
Pavol Rusnak
2e2534585b
call ui.display.refresh in loop.py
2016-10-04 16:33:38 +02:00
slush0
97522be434
Added new messages
2016-10-03 15:41:38 +02:00
Jan Pochyla
f2b509b591
use micropython.const() in trezor.messages
2016-09-29 12:37:40 +02:00
Jan Pochyla
407169af01
import qualified const()
2016-09-29 12:29:43 +02:00
Jan Pochyla
c93133026e
autopep8 and minor cosmetics
2016-09-28 23:28:53 +02:00
Jan Pochyla
fb7b85e479
move protobuf to a single module
2016-09-28 23:17:11 +02:00
slush0
cb1dcc965d
TREZOR v1 protocol codec
2016-09-28 22:59:30 +02:00
slush0
e8850e4aa5
Fixing generator startup in read_message.
2016-09-28 22:57:45 +02:00
slush0
8a160becb9
Added support for TREZOR v1 protocol (acts as session 0 internally).
2016-09-28 22:34:12 +02:00
Pavol Rusnak
281070492d
fix bootloader, extract FONT_* constants
2016-09-28 18:21:29 +02:00
Pavol Rusnak
ed975398d9
move ui.clear into ui.display.clear
2016-09-28 17:00:27 +02:00
Jan Pochyla
c952500552
fix ui.rotate_coords, remove pulse_animation
2016-09-27 17:26:18 +02:00
Jan Pochyla
35d53ad7fc
simplify the Text interface
2016-09-27 17:26:18 +02:00
chren
69fa5acf8b
limit pin length
2016-09-27 17:26:17 +02:00
Jan Pochyla
3f4365eda6
add Text, move Loader to ui.loader
2016-09-27 17:26:16 +02:00
Jan Pochyla
0637987c09
change wipe_device to use long-press confirm
2016-09-27 17:26:16 +02:00
chren
4d672fee28
added some backgrounds and change color vars
2016-09-27 17:26:15 +02:00
Pavol Rusnak
a3ec1c082a
add log to wire.io
2016-09-27 17:26:14 +02:00
chren
dbfb06d30e
experimenting with ui in reset_device
2016-09-27 17:26:14 +02:00
Pavol Rusnak
299c616d1b
fix __import__ call
2016-09-27 17:26:14 +02:00
chren
cc35a00639
removed old playground and some color changes
2016-09-27 17:26:14 +02:00
Jan Pochyla
096bfbaf2a
fix Swipe on stmhal
2016-09-27 17:26:13 +02:00
Jan Pochyla
883b392fdb
adopt wire dispatching, log removed modules
2016-09-27 17:26:13 +02:00
Jan Pochyla
e9c7a67c73
make imports more local, remove trezor.workflows, minor tweaks
2016-09-27 17:26:13 +02:00
Jan Pochyla
01ac17440d
wipe_device workflow, pin API work
2016-09-27 17:26:12 +02:00
Jan Pochyla
dd713fe6e2
add Storage to reset_device, stub session support in config
2016-09-27 17:26:12 +02:00
Jan Pochyla
34ed2fb86a
workflow monitor, reset_device layout work
...
- request/response manner of usual protobuf workflows is enforced, workflows are expected to either return a valid protobuf response, or raise an exception
- added wire.FailureError exception that allows workflow to provide Failure code & message
- pin workflows simplified
TODO: all this workflow work does not really belong in trezor.wire
2016-09-27 17:26:11 +02:00
Jan Pochyla
70110187cc
overload __iter__ in loop.Wait
...
This will automatically exit child tasks in case of close() or throw() on the waiting task, but only if run through `await` or `yield from`
2016-09-27 17:26:11 +02:00
Jan Pochyla
02b13af526
fix session id range
2016-09-27 17:26:11 +02:00
Jan Pochyla
64746d01b4
use memoryviews in wire_codec
2016-09-27 17:26:11 +02:00
Pavol Rusnak
f727cab942
rework aes module, add summary to test script
2016-09-27 17:26:09 +02:00
Pavol Rusnak
dd78f83576
update docu strings in aes
2016-09-27 17:26:09 +02:00
Pavol Rusnak
fc05f25255
trezor.crypto.aes work in progres
2016-09-27 17:26:07 +02:00
Jan Pochyla
d5942d664c
add the generated wire type index
2016-09-27 17:26:07 +02:00
Jan Pochyla
6991286f8b
use __iter__ instead of wait
2016-09-27 17:26:06 +02:00
Jan Pochyla
b8dd8ed90c
wire fixes
2016-09-27 17:26:06 +02:00
Jan Pochyla
97d402eba8
unify unimport_func and unimport_gen, asyncify
2016-09-27 17:26:06 +02:00
Jan Pochyla
099767d592
session/workflow overhaul
...
- lazy loading and importing of protobuf messages
- workflow dispatching through codec pipeline on the first message report
HACK: workflow killing
TODO: cap on concurrent sessions
TODO: ui locking/queuing
TODO: session storage
TODO: tests
2016-09-27 17:26:06 +02:00
Pavol Rusnak
f42b62fa40
use mock config for stmhal, setup hid in boot
2016-09-27 17:26:05 +02:00
Pavol Rusnak
7aa8593941
store config in /var/tmp
2016-09-27 17:26:05 +02:00
Jan Pochyla
312859ba71
add experimental animation with async for
2016-09-27 17:26:03 +02:00