Commit Graph

712 Commits (1280073c044fd082a1808cd720f7169b2b7db21a)

Author SHA1 Message Date
Jan Pochyla d7bc138262 signtx: remove forgotten import
8 years ago
Pavol Rusnak c8eb2bf17b
trezor.crypto: prepend recid to ecdsa signatures
8 years ago
Pavol Rusnak 2dc9d6ac4e
sign: inline write_tx_header, write_tx_middle and write_tx_footer functions
8 years ago
Pavol Rusnak 32e699efdb
trezor.crypto.der: convert -> encode
8 years ago
Jan Pochyla d2c71b3a58 signtx: add first test, make it all work
8 years ago
Pavol Rusnak 9fb6e328a0
trezor.crypto: add der module
8 years ago
Jan Pochyla 1bb20c2521 signtx: serialize tx meta
8 years ago
Pavol Rusnak 33b5436dcc
tests: move to /tests to avoid freezing
8 years ago
Pavol Rusnak c95ed063db
trezor.crypto.hashlib: remove HashIO (lives as HashWriter somewhere else)
8 years ago
Pavol Rusnak 8092be211c
trezor.messages: regenerate messages
8 years ago
Pavol Rusnak c49c4ea29e
apps.common.coins: make coins definitions more readable + adapt generator
8 years ago
Jan Pochyla 44a3b7f9f1 signtx: fixes, refactoring
8 years ago
Pavol Rusnak 6891c3c463
trezor.config: add wipe method
8 years ago
Pavol Rusnak 998fb9fce6
tests: added check_coverage script
8 years ago
Pavol Rusnak 955bd44684
rename unit tests to match module names
8 years ago
Pavol Rusnak 8b0d7be52a
trezor.crypto: add keccak option to Sha3_*.digest()
8 years ago
Pavol Rusnak 192fc5f1ef
trezor.crypto: add sha1, regenerate mocks
8 years ago
Jan Pochyla 3b742aa5dc signtx: WIP
8 years ago
Jan Pochyla 6a98aff8bb WIP: signing pseudocode
8 years ago
Jan Pochyla 783fddf749 messages: do not use const()
8 years ago
Pavol Rusnak 34ba0ccd72
trezor.crypto: add key option for blake2s, add unit tests for blake2s
8 years ago
Pavol Rusnak 56eb351816
trezor.crypto: add hashlib.HashIO
8 years ago
Pavol Rusnak 54a045e9de
apps.common: add pseudocode for signing
8 years ago
Jan Pochyla b3c03496e4 streams: minor API change
8 years ago
Jan Pochyla 83043f7aef wire: update to latest changes in protobuf
8 years ago
Jan Pochyla a16e02a3d8 messages: regenerate
8 years ago
Jan Pochyla 36784bf0f5 protobuf: refactoring, remove default values and required fields
8 years ago
Pavol Rusnak df5e770dec
trezor.crypto: refactor base58; allow custom digest function
8 years ago
Pavol Rusnak 965a6e653a
apps.common.coins: throw exceptions when coin is not found instead of returning None
8 years ago
Pavol Rusnak 6e658ff2f1
trezor.messages: regenerate classes
8 years ago
Jan Pochyla 507d9bdf68 wire: add tests for v1 codec
8 years ago
Pavol Rusnak 7404a76aeb
modtrezorcrypto: add test_sign_verify_random to curve unit tests
8 years ago
Pavol Rusnak 9c921c073f
modtrezorcrypto: add generate_secret methods to curves
8 years ago
Pavol Rusnak 3c5c685b8c
add curve25519.publickey and unittest for randomized multiply
8 years ago
Pavol Rusnak 7f5fa78f35
modtrezorcrypto: add ECDH for nist256p1, secp256k1, curve25519 (multiply method)
8 years ago
Jan Pochyla 4216e6f544 tests: remove old wire_codec test example
8 years ago
Jan Pochyla d0b29d4caa wire: add tests, fix missing 0-padding
8 years ago
Pavol Rusnak e62e8dbe6f
tools: move coins-gen tool to /tools
8 years ago
Pavol Rusnak 1420ad591b
apps: add apps.common.coins (+generator)
8 years ago
Jan Pochyla 688d293b01 wire: use memoryview() asap in the parsing process
8 years ago
Jan Pochyla 67ac47f087 apps.homescreen: respond with ~correct data, handle GetFeatures
8 years ago
Jan Pochyla ad2955aaab ui: code style, make header icon optional
8 years ago
Jan Pochyla b60206d588 app.management: fix missing icon
8 years ago
Jan Pochyla 74b2170e3f ui.swipe: make constants private
8 years ago
Jan Pochyla 4e290cc6df ui.loader: add is_active method
8 years ago
Jan Pochyla d94dd32816 ui.text: code style, add color support
8 years ago
Jan Pochyla 7a518e9fa4 seed: add passphrase UI
8 years ago
Jan Pochyla c5dfcb53d1 apps.wallet: add GetAddress
8 years ago
Pavol Rusnak 3067bfa003
modtrezorui: add yoffset parameter to display.loader
8 years ago
Jan Pochyla a44e16a9ca rework high-level storage
8 years ago
Jan Pochyla 53f6347838 protobuf: optimize memory, minor api changes
8 years ago
Jan Pochyla 385eab91f1 modtrezorcrypto: add bip32 tests
8 years ago
Jan Pochyla 0a5e43723f utils: export TrezorUtils.memcpy
8 years ago
Pavol Rusnak a9131f26e7
debug: fix variable name
8 years ago
Pavol Rusnak 882efbf21b
modtrezormsg: use interfaces index internally, usage_page externally
8 years ago
Pavol Rusnak a423d4602f
modtrezormsg: store assigned used pages internally, add get_interfaces method
8 years ago
Pavol Rusnak 3f44dfedb5
modtrezormsg: use usage_page to identify interfaces
8 years ago
Pavol Rusnak d9546d45b9
ui: proper size for loader
8 years ago
Pavol Rusnak ad6c274e07
modtrezorui: loader icon is now 64x64; reorganize icons
8 years ago
slush0 51de3a3d9c Setting initial brightness to ui.BACKLIGHT_NORMAL
8 years ago
slush0 ac726746b9 Changed dimming constants (tested on hw)
8 years ago
slush0 cf38b58a73 Reworked homescreen (no blinking, only diming)
8 years ago
Pavol Rusnak 3e8b025cbd
use mp_obj_new_str_of_type where it makes sense instead of mp_obj_new_str_from_vstr
8 years ago
chren 78efd4f2e0 minor color changes in pin dialog
8 years ago
chren cb2399197f fixed wipe device header
8 years ago
chren 5a20a48745 added ui header and icons
8 years ago
Jan Pochyla abd20741f6 add seed module, GetPublicKey now works
8 years ago
Jan Pochyla d0bb7edbfa storage: change api to protobuf
8 years ago
Jan Pochyla 6b94511472 LoadDevice: validate mnemonic, import xprv
8 years ago
Jan Pochyla 492e71f147 workflow: less verbose naming
8 years ago
Jan Pochyla 6d5514ac4a make logging less verbose
8 years ago
Jan Pochyla c019741c33 wire: fix write_message, pbuf dumps is sync now
8 years ago
Jan Pochyla 4b0da8677a wire: fix read_message for v1 protocol
8 years ago
Jan Pochyla c3ee7dd709 loop: refresh display after every step
8 years ago
Jan Pochyla cc22d59eca ui: clear the screen before common layouts
8 years ago
Jan Pochyla b2299c118a protobuf: fix repeated fields
8 years ago
Jan Pochyla be069a771b protobuf: use async/await, make loads/dumps sync
8 years ago
Jan Pochyla ec412c6da3 protobuf: fix uvarint dumping
8 years ago
Pavol Rusnak 7dc53219d2
extract common bootloader stuff into bl_common.py
8 years ago
Pavol Rusnak e405a6305d
use bar_radius where needed
8 years ago
Pavol Rusnak 036a4ead33
remove playground from main.py
8 years ago
Pavol Rusnak 2e39c86b42
cleanup
8 years ago
Pavol Rusnak a536e2d6a5
loader is now smaller
8 years ago
Pavol Rusnak 27fb301b22
validate mp_buffer_info_t usage for cases where len==0
8 years ago
Pavol Rusnak 2e2534585b
call ui.display.refresh in loop.py
8 years ago
Pavol Rusnak b7f378376b
disable obsolete test_wire.py for now
8 years ago
Pavol Rusnak d995e53d28
add travis tests
8 years ago
slush0 97522be434 Added new messages
8 years ago
slush0 1840e331bb Moved unused images out of resources
8 years ago
Jan Pochyla f2b509b591 use micropython.const() in trezor.messages
8 years ago
Jan Pochyla 407169af01 import qualified const()
8 years ago
Jan Pochyla c9fbac7a0b LoadDevice now works
8 years ago
Jan Pochyla 0e799d62af move sub-workflows do apps/common
8 years ago
Jan Pochyla c93133026e autopep8 and minor cosmetics
8 years ago
Jan Pochyla 976b14a5b8 protobuf: skip None values while dumping
8 years ago
Jan Pochyla fb7b85e479 move protobuf to a single module
8 years ago
slush0 cb1dcc965d TREZOR v1 protocol codec
8 years ago
slush0 e8850e4aa5 Fixing generator startup in read_message.
8 years ago
slush0 8a160becb9 Added support for TREZOR v1 protocol (acts as session 0 internally).
8 years ago
Pavol Rusnak 281070492d
fix bootloader, extract FONT_* constants
8 years ago
Pavol Rusnak ed975398d9
move ui.clear into ui.display.clear
8 years ago
Jan Pochyla e67037bc4d fix homescreen rotation, revert the logo
8 years ago
Jan Pochyla c952500552
fix ui.rotate_coords, remove pulse_animation
8 years ago
Jan Pochyla 35d53ad7fc
simplify the Text interface
8 years ago
chren 69fa5acf8b
limit pin length
8 years ago
chren fe4e024088
changed homescreen bg
8 years ago
Jan Pochyla 3f4365eda6
add Text, move Loader to ui.loader
8 years ago
Jan Pochyla 0637987c09
change wipe_device to use long-press confirm
8 years ago
chren 4d672fee28
added some backgrounds and change color vars
8 years ago
Pavol Rusnak a3ec1c082a
add log to wire.io
8 years ago
chren dbfb06d30e
experimenting with ui in reset_device
8 years ago
Pavol Rusnak 299c616d1b
fix __import__ call
8 years ago
chren cc35a00639
removed old playground and some color changes
8 years ago
Jan Pochyla 096bfbaf2a
fix Swipe on stmhal
8 years ago
Jan Pochyla 883b392fdb
adopt wire dispatching, log removed modules
8 years ago
Jan Pochyla e9c7a67c73
make imports more local, remove trezor.workflows, minor tweaks
8 years ago
Pavol Rusnak db6673b50e
move initialization of I2C1 to msg_init()
8 years ago
Jan Pochyla 07dd27c567
get rid of layout stubs
8 years ago
Jan Pochyla 01ac17440d
wipe_device workflow, pin API work
8 years ago
Jan Pochyla dd713fe6e2
add Storage to reset_device, stub session support in config
8 years ago
Jan Pochyla 34ed2fb86a
workflow monitor, reset_device layout work
8 years ago
Jan Pochyla 70110187cc
overload __iter__ in loop.Wait
8 years ago
Jan Pochyla 02b13af526
fix session id range
8 years ago
Jan Pochyla 64746d01b4
use memoryviews in wire_codec
8 years ago
Jan Pochyla 7570977cc4
little perf tweaks in protobuf
8 years ago
Pavol Rusnak e480871db3
generate proper events from touchscreen
8 years ago
Pavol Rusnak f727cab942
rework aes module, add summary to test script
8 years ago
Pavol Rusnak dd78f83576
update docu strings in aes
8 years ago
Pavol Rusnak a15730087c
VCP is the new CDC
8 years ago
Pavol Rusnak d9495b12ac
trezor.crypto.aes finished (including unit tests)
8 years ago
Pavol Rusnak fc05f25255
trezor.crypto.aes work in progres
8 years ago
Jan Pochyla d5942d664c
add the generated wire type index
8 years ago
Jan Pochyla 6991286f8b
use __iter__ instead of wait
8 years ago
Jan Pochyla b8dd8ed90c
wire fixes
8 years ago
Jan Pochyla 97d402eba8
unify unimport_func and unimport_gen, asyncify
8 years ago
Jan Pochyla 099767d592
session/workflow overhaul
8 years ago
Jan Pochyla 99485b3385
finalize the streaming pbuf codec
8 years ago
Pavol Rusnak f42b62fa40
use mock config for stmhal, setup hid in boot
8 years ago
Pavol Rusnak 7aa8593941
store config in /var/tmp
8 years ago
Pavol Rusnak 7d4fbd07ea
fix typing.NewType
8 years ago
Pavol Rusnak bfa034f2d9
add typing module
8 years ago
Jan Pochyla 312859ba71
add experimental animation with `async for`
8 years ago
Jan Pochyla 3eaf001eef
add a broken PoC of wire/protobuf stream reading
8 years ago
Jan Pochyla d6592a48e6
fixes for v2 wire
8 years ago
Jan Pochyla 096f3f898f
move pagination primitives to trezor.ui.scroll
8 years ago
Jan Pochyla 455a436123
autopep8
8 years ago
Jan Pochyla a4d1b27541
test async/await support in homescreen layout
8 years ago
Jan Pochyla c8c34c875b
simplify loop.py, add loop.Future, supoort `await`
8 years ago
Jan Pochyla 3a69524c52
simplify read_wire_msg a bit
8 years ago
Jan Pochyla cb0f5e2595
switch to v2 wire protocol
8 years ago
Pavol Rusnak 545e93d1b4
add layout to u2f app
8 years ago
Pavol Rusnak cd28103b75
add bitbucket/gitlab to known u2f apps
8 years ago
Pavol Rusnak d4d8729568
add mem constants to debug module
8 years ago
Pavol Rusnak fbfd9d4b61
split debug (=dangerous) things from trezor.utils to trezor.debug
8 years ago
Pavol Rusnak 6402b3d232
update slush pool logo
8 years ago
Pavol Rusnak ce734df1b0
add u2f icons, remove toig/toif from assets
8 years ago
Jan Pochyla ae4540c59b
introduce generic swipe container to reset_device
8 years ago
slush0 7aaba5c6ce
Added u2f hash for Slush Pool
8 years ago
chren 53a6132ed8
tests with UI and minor changes in scroll component
8 years ago
chren be01cee8d3
added loading layout playground
8 years ago
chren 16f81c3264
added dummy scroll down icon with animation
8 years ago
chren fed9309ffa
added playground of scrollicon
8 years ago
Pavol Rusnak e6b8dc3cc5
add perf option to emu.sh (-p)
8 years ago
Pavol Rusnak d3d21bdbbd
remove main_stick and company
8 years ago
chren 771372adb2
replace scrolling to componenet, added mockup for recovery device layout
8 years ago
chren 887c877567
paging "scrollbar"
8 years ago
Jan Pochyla 4bf7535903
pass kwargs through to ConfirmDialog
8 years ago
chren 3746777628
fix micro bug for pin buttons
8 years ago
chren cb2027ad86
added button to finish [tbd]
8 years ago
chren 7237321470
fix pagination of seed
8 years ago
chren cd35a592a1
fix way of scrolling
8 years ago
chren e8601232e8
fixed img url, added img to local res folder
8 years ago
chren 2482d3935d
sign message layout
8 years ago
Jan Pochyla 43e6bc2f11
raise on registering conflicting message handler
8 years ago
Jan Pochyla 788eb675a5
remove seed app initialization
8 years ago
Jan Pochyla 6553d315e6
move 'chunks' to trezor.utils
8 years ago
Jan Pochyla 6c0970df9e
remove apps/seed example
8 years ago
Jan Pochyla 9f0b27f597
add ResetDevice workflow
8 years ago
Jan Pochyla 961ae90dd2
regenerate messages with __repr__ support
8 years ago
Jan Pochyla 173c49bef8
add __repr__ to Message and MessageType
8 years ago
Jan Pochyla 1da27dd558
fix write of empty messages, add loging to wire
8 years ago
chren 398e46e9ff
signTx example layout
8 years ago
chren cefccb91d8
wipe device screen layout
8 years ago
Jan Pochyla cf77aeb029
add icon buttons, make PinMatrix nicer
8 years ago
chren 1e4556d736
added clear input pin button
8 years ago
chren c6ed52a7c9
added remove input line
8 years ago
Jan Pochyla c6c69ba8c8
fix ui in PinMatrix
8 years ago
chren ebe9d69a70
fix - set homescreen as default layout
8 years ago
chren cd80509f06
seed static mockup
8 years ago
chren bed2d4d50e
change backlight to white and seed mockup
8 years ago
Pavol Rusnak 5b6ab9ca96
small fixes; res contains just toig/toif files (png are in /assets)
8 years ago
chren 0e8d7a5d6c
add static seed layout
8 years ago
chren 9ca6d61bcc
minor design changes in colors, pin and white border
8 years ago
chren 4852609efb
added clear display to pin dialog
8 years ago
chren bbfd633f35
visual changes in pin matrix
8 years ago
Pavol Rusnak 8b27cc3b71
trezor.ui.display.backlight works now
8 years ago
Jan Pochyla 377fffa5a5
add wipe, wire.write is a generator, add trezor/workflows
8 years ago
Pavol Rusnak 9f40362482
remove homebrew docu generator, use docstring syntax
8 years ago
Pavol Rusnak 0f24eb2e0e
use python implementation for backlight (for now)
8 years ago
Pavol Rusnak c08c4cd386
fix trezor.res
8 years ago
Pavol Rusnak 7e8e0e3439
add fido_u2f app skeleton
8 years ago
Pavol Rusnak 93f4a97470
fix trezor.crypto.random test
8 years ago
Jan Pochyla 9a30a13aff
fix test_msg, rename to test_wire
8 years ago
Pavol Rusnak 154184e4e2
add unit tests for trezor.crypto.random
8 years ago
Jan Pochyla 9232c77529
PinDialog -> PinMatrix, shuffle digits
8 years ago
Pavol Rusnak 35b26651ba
add trezor.crypto.random
8 years ago
Jan Pochyla 6a647b124d
add management app skeleton and ConfirmDialog
8 years ago
Jan Pochyla 9c34491e20
self.__dict__ does not work properly in uP, workaround
8 years ago
Jan Pochyla 2880be1db6
use == instead of 'is' for scalars, cleanup PinDialog
8 years ago
Jan Pochyla 46f96ddb81
Message can be initialized with kwargs
8 years ago
Pavol Rusnak 67ea7dbd15
add persistance to trezor.config mock
8 years ago
Jan Pochyla 7195e1d12f
dispatch on wire_type instead of message_type
8 years ago
Pavol Rusnak 9dc4813ec7
add trezor.crypto.ssss skeleton
8 years ago
Jan Pochyla 71b89c748a
adapt rest of code to touch changes, example works
8 years ago
Jan Pochyla 421f17bfee
rework events around interfaces, split msg.py to wire.py
8 years ago
Jan Pochyla 3677b8142b
add touch event rotation, msg dispatcher, wallet app
8 years ago
Pavol Rusnak b0a5297aed
fix gitignore filename
8 years ago
Pavol Rusnak fc528f5733
add collect_res script, load frrom resources.py if provided
8 years ago
Pavol Rusnak 509962abc6
move trezor.gettext.gettext to trezor.res.gettext
8 years ago
Pavol Rusnak 0b54ae9124
introduce trezor.res module
8 years ago
Pavol Rusnak bf4d1bdea3
add trezor.gettext
8 years ago
Pavol Rusnak 38b66cb6d8
introduce msg.setup proof-of-concept
8 years ago
Pavol Rusnak bf02fe0ddf
trezor.msg is now iface aware
8 years ago
Pavol Rusnak c56719ea8c
regenerated messages
8 years ago
Pavol Rusnak af9d2cf21f
add mock for trezor.config
8 years ago
Pavol Rusnak 2576d9c3a4
trezor.storage -> trezor.config
8 years ago
Pavol Rusnak 0fb6fc05a5
further changes to trezor.storage
8 years ago
Pavol Rusnak 9ed3b24edf
add default value to trezor.storage.get
8 years ago
Pavol Rusnak ddf6771981
add trezor.storage
8 years ago
Jan Pochyla 53ab1b8a7d
add protobuf example to playground
8 years ago
Jan Pochyla b41c94dee4
update msg tests
8 years ago
Jan Pochyla 8f49a104bf
make msg functions more readable, add pbuf wrappers
8 years ago
Jan Pochyla f5b802d421
add loads, dumps to MessageType and Message
8 years ago
Jan Pochyla 87145c2b5f
make the var names in msg.py a bit less similar
8 years ago
Jan Pochyla 4a255e8b77
add write_message
8 years ago
Jan Pochyla f98fc4c0c8
add reading of logical messages from HID
8 years ago
Pavol Rusnak 627f547fcb
update docu
8 years ago
Jan Pochyla c0313cc868
put ui.utils back in ui/__init__.py
8 years ago
Jan Pochyla f3c9715ff3
split ui code in modules
8 years ago
Jan Pochyla 3a5d29848b
Wait supports syscall instead of gens now
8 years ago
Jan Pochyla 4fb5dd0421
sleep -> Sleep
8 years ago
Jan Pochyla 9f84e52ea3
add example of swipe
8 years ago
Jan Pochyla 412ac2daa7
support multiple event handlers
8 years ago
Pavol Rusnak 8f7fc96301
add trezor.crypto.bip39.seed
8 years ago
Pavol Rusnak 910926e25c
add trezor.crypto.bip39
8 years ago
Jan Pochyla 32c7782d89
sleep -> Sleep
8 years ago
Jan Pochyla 97ac6c52f0
syscalls are objects now, make schedule public
8 years ago
Jan Pochyla 7bf92f118b
button border
8 years ago
Jan Pochyla ef44e9ded8
add counter to time_queue, kill gens with close()
8 years ago
Jan Pochyla 0f74597215
pin dialog
8 years ago
Jan Pochyla 5bc5707077
WIP: pin dialog style
8 years ago
Jan Pochyla 15a03ce994
WIP: more UI experiments, now with 100% more OOP
8 years ago
Pavol Rusnak 347925169d
two more occurences
8 years ago
Pavol Rusnak 55a7bf92ce
fix import _io to uio
8 years ago
Jan Pochyla ef22adb2b7
WIP: experiment with pin dialog
8 years ago
Pavol Rusnak d268cf3b57
document python crypto apis
8 years ago
Pavol Rusnak 15254ffce5
regenerate messages
8 years ago
Pavol Rusnak 3d8f8a659a
rework documentation, proof of concept api docu generator
8 years ago
slush0 561b82a5be
Fixed API (wait() returns number, not Sleep object)
8 years ago
Jan Pochyla e382737fda
use friendlier event enums
8 years ago
Jan Pochyla af482d3da1
experiment with touch event multiplexing
8 years ago
Jan Pochyla e8122cc975
__call_at -> __schedule
8 years ago
Jan Pochyla d612037eda
proof of concept for waiting for events
8 years ago
Pavol Rusnak 0ba9f6b6bb
add autogenerated messages
8 years ago
Pavol Rusnak b0a6b3fe15
implement bar with rounder corners
8 years ago
Pavol Rusnak 588be646c0
move text_center, text_right methods into display class
8 years ago
Pavol Rusnak 6f9edb349c
add fingerprint layout
8 years ago
Pavol Rusnak d746c79fb8
add display.text_width
8 years ago
slush0 4a918a4ba0
Stickuv playground
8 years ago
Jan Pochyla 20dad5a300
style, fix possible exception in run_forever
8 years ago
Jan Pochyla 36dad0137b
fix _Wait
8 years ago
slush0 06515321cf
Reworked wait into class
8 years ago
Pavol Rusnak b7b57ae53e
new pbkdf2 api with update
8 years ago
Jan Pochyla c97db79d14
WIP wait fix
8 years ago
slush0 2d75289bf3
__wait_for_event integrated into main loop
8 years ago
slush0 3a7e343a43
Implemented log.exception, improved logging
8 years ago
slush0 b0d9a4b884
Implemented basic loop.wait()
8 years ago
Pavol Rusnak 6a5f16207c
move log to trezor
8 years ago
Jan Pochyla 29e20e302a
fix log
8 years ago
Jan Pochyla ac28a41d96
hide loop.call_at, use yield or run_forever
8 years ago
Pavol Rusnak 4eb87b2fd8
first parameter of log methods is now name
8 years ago
Jan Pochyla e7bfb64502
rework the event loop
8 years ago
Pavol Rusnak 71496913ba
rework logging
8 years ago
slush0 e13d4ac581
Print mouse move to display
8 years ago
slush0 c66dfee6b9
last_sleep info replaced by ring buffer and delay_avg
8 years ago
Pavol Rusnak 9856f96cf7
add hw button to msg.select, build 32-bit unix port by default
8 years ago
Pavol Rusnak 1664a4fc29
replace wait with msg.select
8 years ago
slush0 fa52ecfb79
WIP
8 years ago
slush0 f9fa429f84
Use constants
8 years ago
slush0 5cf292e41a
Fixed animate_pulse api
8 years ago
Pavol Rusnak 7559207a62
new message handling using msg.select
8 years ago
slush0 338be18601
Updated to animate_pulse API
8 years ago
slush0 ca991fdde6
Main Trezor even loops starts here
8 years ago
slush0 92eeac3612
Handle exceptions in better way, enable to return to main screen many times.
8 years ago
slush0 ab9141dd95
Configuration & boot of apps
8 years ago
slush0 53ce44111e
Playground moved as an app
8 years ago
slush0 b6cdaac364
Removed lib_linux (all platform-dependent handling is done by C modules).
8 years ago
slush0 f22511f036
First apps - homepage, playground
8 years ago
Jan Pochyla de83114dc7
add ui.blend
8 years ago
Pavol Rusnak 904127f263
remove ui.touch, add utils.select
8 years ago
slush0 767a41cffd
WIP
8 years ago
slush0 07abef7ff4
Added animate_pulse
8 years ago
Pavol Rusnak 4f90848c0a
remove native moduleprotobuf
8 years ago
slush0 0e21c18c2a
WIP
8 years ago
slush0 cb52fdedc3
New decorators unimport_func, unimport_dec
8 years ago
slush0 66d10668ac
Former uasyncio, now heavily modified for trezor purposes.
8 years ago
slush0 369cc485d4
uasyncio renamed as trezor.loop
8 years ago
slush0 a102888233
Event loop moved to loop.py
8 years ago
slush0 afb4bb7d76
WIP
8 years ago
slush0 c0487f1d6b
Adapt to new event loop interface
8 years ago
slush0 f2703f1af2
Allow parameters to layout functions
8 years ago
slush0 46353ed2e1
Removed EventLoop class, even loop is a module. Saves ~30kB RAM.
8 years ago
slush0 078365f5d9
Updated playground
8 years ago
slush0 cc71fb0a02
Convert delays from float to int (ticks_us)
8 years ago
slush0 f27d5ad725
Remove unused code
8 years ago
Pavol Rusnak ee3614ae6a
cleanup pb2py, add debug to emu.sh
8 years ago
Pavol Rusnak 0a8870f110
add modtrezorutils
8 years ago
Pavol Rusnak bc7cb88cdf
use little endian for toif, fix random
8 years ago
Pavol Rusnak b7013437ee
add nist256p1 and secp256k1 to trezor.crypto.curve
8 years ago
Pavol Rusnak f3f44b408d
add trezor.crypto.ed25519
8 years ago
slush0 e6df94cbd5
pb2py generator, build_pb2.sh
8 years ago
Pavol Rusnak 32403b618e
use ubinascii for unhexlify in unit tests
8 years ago
Pavol Rusnak b41c1c3e4d
add data size to toi format header
8 years ago
Pavol Rusnak f8713bad4d
add sha3
8 years ago
Pavol Rusnak 3d3d8e89a5
don't use native base58
8 years ago
Pavol Rusnak b29ece66ef
use pbkdf2_hmac from mbedtls
8 years ago
Pavol Rusnak a230d9d294
hashes and pbkdf2 now have api of hashlib
8 years ago
Pavol Rusnak afbd1b0f22
use api similar to hmac in pbkdf2 module
8 years ago
Pavol Rusnak 5d929fba0e
add trezor.crypto.pbkdf2
8 years ago
Pavol Rusnak 8b9f2a95b3
add trezor.crypto.hmac
8 years ago
Pavol Rusnak 4c3eb5f015
allow to call hash.digest() more than once
8 years ago
Pavol Rusnak 21db5a6ff7
use streamed version of ripemd160
8 years ago
Pavol Rusnak 0ab2170cc6
add ripemd160
8 years ago
Pavol Rusnak 60d45a5d34
modify trezor.crypto.hash api to be similar to python api
8 years ago
Pavol Rusnak 7b702314a6
fix last commit
8 years ago
Pavol Rusnak 4eccc55c5c
add unit tests, add t.c.sha512
8 years ago
Pavol Rusnak e88cd6f20d
add trezor.utils (pure python)
8 years ago
Pavol Rusnak 0d8112f6b4
split trezor.crypto into more modules
8 years ago
Pavol Rusnak ed39c2001e
remove t.c.base58.*_check functions from module (this is app logic), add t.c.sha256 module
8 years ago
slush0 ddfde9a0ad
Initial version of protobuf library
8 years ago
slush0 ee9b9ca351
Polished binding to protobuf, msg.
8 years ago
slush0 456e1fba44
Pipe support & async pipe transport
8 years ago
slush0 cbc2be00ca
Initial version of module os (from micropython-lib)
8 years ago
Pavol Rusnak 0f2670f12e
add trezor.crypto
8 years ago
Pavol Rusnak a5e861e0aa
introduce trezor.msg and trezor.protobuf
8 years ago
Pavol Rusnak d0e179e090
rename touch.callback functions
8 years ago
Pavol Rusnak 516057a7fa
touch code wip
8 years ago
slush0 9cb42cc88d
Merge branch 'master' of github.com:satoshilabs/trezor-os
8 years ago
Pavol Rusnak 37a33efc57
refactor color and font definitions to trezor.ui module
8 years ago
slush0 8948d2c42a
tap.png
8 years ago
slush0 dc20152afe
Playground reflects new trezor.ui.display API
8 years ago
slush0 a42b654eba
Playground
8 years ago
slush0 971e9f7ff1
Lightly refactored uasyncio, added logging
8 years ago
Pavol Rusnak bba9418214
add touch (WIP)
8 years ago
slush0 0b0e6186c6
Added uasyncio
8 years ago
Pavol Rusnak 8493da5f97
introduce trezor module
8 years ago
Pavol Rusnak 4a9b60a0f3
add load to Makefile
8 years ago
Pavol Rusnak ee67b0bab7
make display class a singleton
8 years ago
Pavol Rusnak 774d6aaee4
use constants
8 years ago
Pavol Rusnak c41922a654
fix wording
8 years ago
Pavol Rusnak fef9a2266d
more font work
8 years ago
slush0 7dc716a05a
Stub for python src & emu.sh
8 years ago