1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

signTx example layout

This commit is contained in:
chren 2016-06-09 16:06:37 +02:00 committed by Pavol Rusnak
parent cefccb91d8
commit 398e46e9ff
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 20 additions and 0 deletions

View File

@ -12,6 +12,18 @@ def dispatch_GetPublicKey(mtype, mbuf):
return layout_get_public_key(message) 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(): def boot():
GetPublicKey = 11 GetPublicKey = 11
register(GetPublicKey, dispatch_GetPublicKey) register(GetPublicKey, dispatch_GetPublicKey)
SignTx = 15
register(SignTx, dispatch_SignTx)

View 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')