1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-18 03:10:58 +00:00

wallet: fix layout_get_public_key

This commit is contained in:
Jan Pochyla 2016-11-11 11:22:17 +01:00
parent 90b2f3a3e0
commit 4c056d8aaa

View File

@ -1,15 +1,15 @@
from trezor.utils import unimport from trezor.utils import unimport
from ..common import seed
@unimport @unimport
async def layout_get_public_key(message, session_id): async def layout_get_public_key(message, session_id):
from trezor.messages.HDNodeType import HDNodeType from trezor.messages.HDNodeType import HDNodeType
from trezor.messages.PublicKey import PublicKey from trezor.messages.PublicKey import PublicKey
from ..common.seed import get_node
node = await get_node(session_id, message.address_n) node = await seed.get_node(session_id, message.address_n)
node_xpub = node.serialize_public(0x0488B21E) node_xpub = node.serialize_public()
node_type = HDNodeType( node_type = HDNodeType(
depth=node.depth(), depth=node.depth(),
child_num=node.child_num(), child_num=node.child_num(),