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:
parent
90b2f3a3e0
commit
4c056d8aaa
@ -1,15 +1,15 @@
|
||||
from trezor.utils import unimport
|
||||
from ..common import seed
|
||||
|
||||
|
||||
@unimport
|
||||
async def layout_get_public_key(message, session_id):
|
||||
from trezor.messages.HDNodeType import HDNodeType
|
||||
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(
|
||||
depth=node.depth(),
|
||||
child_num=node.child_num(),
|
||||
|
Loading…
Reference in New Issue
Block a user