1
0
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:
Pavol Rusnak 2018-11-15 13:41:19 +01:00
parent be58549fd9
commit b1566e9d57
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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