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