1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

fsm: return xpub for multisig

This commit is contained in:
Pavol Rusnak 2018-11-15 13:43:08 +01:00
parent ca24156eb5
commit b1725e7264
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -63,7 +63,7 @@ void fsm_msgGetPublicKey(const GetPublicKey *msg)
}
resp->has_xpub = true;
if (coin->xpub_magic && script_type == InputScriptType_SPENDADDRESS) {
if (coin->xpub_magic && (script_type == InputScriptType_SPENDADDRESS || script_type == InputScriptType_SPENDMULTISIG)) {
hdnode_serialize_public(node, fingerprint, coin->xpub_magic, resp->xpub, sizeof(resp->xpub));
} else
if (coin->has_segwit && coin->xpub_magic_segwit_p2sh && script_type == InputScriptType_SPENDP2SHWITNESS) {