mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 20:19:23 +00:00
src/apps/wallet/get_public_key: return xpub for multisig
This commit is contained in:
parent
be58549fd9
commit
b1566e9d57
@ -16,7 +16,10 @@ async def get_public_key(ctx, msg):
|
||||
curve_name = coin.curve_name
|
||||
node = await seed.derive_node(ctx, msg.address_n, curve_name=curve_name)
|
||||
|
||||
if script_type == InputScriptType.SPENDADDRESS and coin.xpub_magic is not None:
|
||||
if (
|
||||
script_type in [InputScriptType.SPENDADDRESS, InputScriptType.SPENDMULTISIG]
|
||||
and coin.xpub_magic is not None
|
||||
):
|
||||
node_xpub = node.serialize_public(coin.xpub_magic)
|
||||
elif (
|
||||
coin.segwit
|
||||
|
Loading…
Reference in New Issue
Block a user