1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-21 03:52:04 +00:00
trezor-firmware/src/apps/ethereum/__init__.py

22 lines
672 B
Python
Raw Normal View History

2016-12-08 15:18:12 +00:00
from trezor.wire import register, protobuf_workflow
from trezor.utils import unimport
from trezor.messages.wire_types import \
EthereumGetAddress, EthereumSignTx
@unimport
def dispatch_EthereumGetAddress(*args, **kwargs):
2016-12-08 15:18:12 +00:00
from .ethereum_get_address import layout_ethereum_get_address
return layout_ethereum_get_address(*args, **kwargs)
2017-06-13 17:35:14 +00:00
@unimport
def dispatch_EthereumSignTx(*args, **kwargs):
from .ethereum_sign_tx import ethereum_sign_tx
return ethereum_sign_tx(*args, **kwargs)
def boot():
2016-12-08 15:18:12 +00:00
register(EthereumGetAddress, protobuf_workflow, dispatch_EthereumGetAddress)
register(EthereumSignTx, protobuf_workflow, dispatch_EthereumSignTx)