mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
src/apps/wallet/sign_tx: fix style
This commit is contained in:
parent
4225fe7fa8
commit
f60e689a4e
@ -1,7 +1,6 @@
|
|||||||
from trezor.crypto import bip32
|
from trezor.crypto import bip32
|
||||||
from trezor.crypto.hashlib import sha256
|
from trezor.crypto.hashlib import sha256
|
||||||
from trezor.messages import FailureType
|
from trezor.messages import FailureType
|
||||||
from trezor.messages.HDNodePathType import HDNodePathType
|
|
||||||
from trezor.messages.HDNodeType import HDNodeType
|
from trezor.messages.HDNodeType import HDNodeType
|
||||||
from trezor.messages.MultisigRedeemScriptType import MultisigRedeemScriptType
|
from trezor.messages.MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||||
from trezor.utils import HashWriter, ensure
|
from trezor.utils import HashWriter, ensure
|
||||||
@ -93,9 +92,7 @@ def multisig_get_pubkey(n: HDNodeType, p: list) -> bytes:
|
|||||||
|
|
||||||
def multisig_get_pubkeys(multisig: MultisigRedeemScriptType):
|
def multisig_get_pubkeys(multisig: MultisigRedeemScriptType):
|
||||||
if multisig.nodes:
|
if multisig.nodes:
|
||||||
return [
|
return [multisig_get_pubkey(hd, multisig.address_n) for hd in multisig.nodes]
|
||||||
multisig_get_pubkey(hd, multisig.address_n) for hd in multisig.nodes
|
|
||||||
]
|
|
||||||
else:
|
else:
|
||||||
return [multisig_get_pubkey(hd.node, hd.address_n) for hd in multisig.pubkeys]
|
return [multisig_get_pubkey(hd.node, hd.address_n) for hd in multisig.pubkeys]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user