mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
signTx example layout
This commit is contained in:
parent
cefccb91d8
commit
398e46e9ff
@ -12,6 +12,18 @@ def dispatch_GetPublicKey(mtype, mbuf):
|
||||
return layout_get_public_key(message)
|
||||
|
||||
|
||||
@unimport_func
|
||||
def dispatch_SignTx(mtype, mbuf):
|
||||
from trezor.messages.SignTx import SignTx
|
||||
|
||||
message = SignTx.loads(mbuf)
|
||||
|
||||
from .layout_sign_tx import layout_sign_tx
|
||||
return layout_sign_tx(message)
|
||||
|
||||
|
||||
def boot():
|
||||
GetPublicKey = 11
|
||||
register(GetPublicKey, dispatch_GetPublicKey)
|
||||
SignTx = 15
|
||||
register(SignTx, dispatch_SignTx)
|
||||
|
8
src/apps/wallet/layout_sign_tx.py
Normal file
8
src/apps/wallet/layout_sign_tx.py
Normal file
@ -0,0 +1,8 @@
|
||||
from trezor import wire, ui
|
||||
from trezor.utils import unimport_gen
|
||||
|
||||
|
||||
@unimport_gen
|
||||
def layout_sign_tx(message):
|
||||
ui.clear()
|
||||
print('sending')
|
Loading…
Reference in New Issue
Block a user