1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 23:38:09 +00:00
trezor-firmware/src/apps/homescreen/__init__.py

30 lines
844 B
Python
Raw Normal View History

from trezor.wire import register_type, protobuf_handler, write_message
from trezor.utils import unimport
from trezor.messages.wire_types import Initialize
@unimport
async def dispatch_Initialize(_, session_id):
from trezor.messages.Features import Features
features = Features(
revision='deadbeef',
bootloader_hash='deadbeef',
device_id='DEADBEEF',
coins=[],
imported=False,
initialized=False,
label='My TREZOR',
major_version=2,
minor_version=0,
patch_version=0,
pin_cached=False,
pin_protection=True,
passphrase_cached=False,
passphrase_protection=False,
vendor='bitcointrezor.com')
await write_message(session_id, features)
2016-04-28 21:43:34 +00:00
def boot():
register_type(Initialize, protobuf_handler, dispatch_Initialize)