2016-09-21 12:21:18 +00:00
|
|
|
from trezor.wire import register_type, protobuf_handler, write_message
|
|
|
|
from trezor.utils import unimport
|
|
|
|
from trezor.messages.wire_types import Initialize
|
2016-05-25 12:27:22 +00:00
|
|
|
|
|
|
|
|
2016-09-21 12:21:18 +00:00
|
|
|
@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():
|
2016-09-21 12:21:18 +00:00
|
|
|
register_type(Initialize, protobuf_handler, dispatch_Initialize)
|