mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-30 01:01:00 +00:00
2e578572dd
Squashed commit of the following: commit 060563458fbc3b4a17f4d77ba5cd62d0c265c806 Author: matejcik <ja@matejcik.cz> Date: Fri May 10 16:16:19 2019 +0200 skip t1 in eos test commit f759089fef29501467b62bf1540715132a72c4cf Author: matejcik <ja@matejcik.cz> Date: Fri May 10 15:55:20 2019 +0200 make style commit 3ecdd5f77b331d7a6e5a46a10c79d80f214f31bd Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Thu May 9 22:05:41 2019 +0300 Refinements in asset to to string conversion function according to code review and test cases for amounts less than 1 commit 72e44a35bada76abdd94ab866c2113a6d9d85191 Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Wed May 8 00:27:45 2019 +0300 Moved to input_flow rest of the tests, cleanup and styling commit 92f9acbabcbef44a6912b074a309393450f0c8de Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Tue May 7 21:47:12 2019 +0300 Fix for amounts less then 1 commit 8a0154f7432ab78e69a123202a97194d34c2a3cb Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Mon May 6 23:26:24 2019 +0300 removed unnecessary peace of code commit b25c15de3eb1df863760e81ca69f09094349c26e Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Mon May 6 23:16:57 2019 +0300 Fixed validate path parameters commit f0f6e7036a8b88d9c5c6b702a8d851e9a9bd3378 Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Mon May 6 23:04:58 2019 +0300 Fixes commit 0c64d3814300df86d452975b2bd46fea13f512d2 Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Mon May 6 22:19:51 2019 +0300 Fixed styling commit 41d1e77231e7da78fade9b2efa1b7d1980f0d3a8 Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Mon May 6 22:13:58 2019 +0300 Changes to core, added CURVE to path validation commit c045b4554ee8e058dbfe35f715b003d0d85ab1d4 Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Mon May 6 22:07:37 2019 +0300 Changes according to review commit 3f0e6cfd40e7d87dc3287bc3a0b2b9db5dea5377 Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Mon Apr 29 21:37:16 2019 +0300 Added change to make expiration date timezone agnostic commit efdf44c326cc3f3137c447e798db5439b57c91fa Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Thu Apr 18 00:14:30 2019 +0300 changes according to code review commit 3b3723da8f8f536c7c370a14236ea81aac25080a Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Tue Apr 16 23:44:50 2019 +0300 Merged python to monorepo commit da6b0c683c29388e15c889ecea6e7f7471961a19 Author: Andriy Tkachyshyn <atkachyshyn@gmail.com> Date: Tue Apr 16 23:13:42 2019 +0300 Merged core to monorepo
62 lines
1.2 KiB
Python
62 lines
1.2 KiB
Python
# isort:skip_file
|
|
|
|
# unlock the device
|
|
import boot # noqa: F401
|
|
|
|
# prepare the USB interfaces, but do not connect to the host yet
|
|
import usb
|
|
|
|
from trezor import loop, wire, workflow, utils
|
|
|
|
# load applications
|
|
import apps.homescreen
|
|
import apps.management
|
|
import apps.wallet
|
|
import apps.ethereum
|
|
import apps.lisk
|
|
import apps.monero
|
|
import apps.nem
|
|
import apps.stellar
|
|
import apps.ripple
|
|
import apps.cardano
|
|
import apps.tezos
|
|
import apps.eos
|
|
|
|
if __debug__:
|
|
import apps.debug
|
|
else:
|
|
import apps.webauthn
|
|
|
|
# boot applications
|
|
apps.homescreen.boot()
|
|
apps.management.boot()
|
|
apps.wallet.boot()
|
|
apps.ethereum.boot()
|
|
apps.lisk.boot()
|
|
apps.monero.boot()
|
|
apps.nem.boot()
|
|
apps.stellar.boot()
|
|
apps.ripple.boot()
|
|
apps.cardano.boot()
|
|
apps.tezos.boot()
|
|
apps.eos.boot()
|
|
if __debug__:
|
|
apps.debug.boot()
|
|
else:
|
|
apps.webauthn.boot(usb.iface_webauthn)
|
|
|
|
# initialize the wire codec and start the USB
|
|
wire.setup(usb.iface_wire)
|
|
if __debug__:
|
|
wire.setup(usb.iface_debug)
|
|
usb.bus.open()
|
|
|
|
# switch into unprivileged mode, as we don't need the extra permissions anymore
|
|
utils.set_mode_unprivileged()
|
|
|
|
# run main event loop and specify which screen is the default
|
|
from apps.homescreen.homescreen import homescreen
|
|
|
|
workflow.startdefault(homescreen)
|
|
loop.run()
|