From ba74cc288093044da63f0624e24522ea0ea6edd1 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Wed, 21 Aug 2019 10:49:38 +0200 Subject: [PATCH] core: change pubkeys to List --- core/src/apps/wallet/sign_tx/addresses.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/apps/wallet/sign_tx/addresses.py b/core/src/apps/wallet/sign_tx/addresses.py index 180042704a..9bb13fd551 100644 --- a/core/src/apps/wallet/sign_tx/addresses.py +++ b/core/src/apps/wallet/sign_tx/addresses.py @@ -13,6 +13,9 @@ from apps.wallet.sign_tx.scripts import ( output_script_native_p2wpkh_or_p2wsh, ) +if False: + from typing import List + # supported witness version for bech32 addresses _BECH32_WITVER = const(0x00) @@ -85,7 +88,7 @@ def get_address( raise AddressError(FailureType.ProcessError, "Invalid script type") -def address_multisig_p2sh(pubkeys: list, m: int, coin: CoinInfo): +def address_multisig_p2sh(pubkeys: List[bytes], m: int, coin: CoinInfo): if coin.address_type_p2sh is None: raise AddressError( FailureType.ProcessError, "Multisig not enabled on this coin" @@ -95,7 +98,7 @@ def address_multisig_p2sh(pubkeys: list, m: int, coin: CoinInfo): return address_p2sh(redeem_script_hash, coin) -def address_multisig_p2wsh_in_p2sh(pubkeys: list, m: int, coin: CoinInfo): +def address_multisig_p2wsh_in_p2sh(pubkeys: List[bytes], m: int, coin: CoinInfo): if coin.address_type_p2sh is None: raise AddressError( FailureType.ProcessError, "Multisig not enabled on this coin" @@ -105,7 +108,7 @@ def address_multisig_p2wsh_in_p2sh(pubkeys: list, m: int, coin: CoinInfo): return address_p2wsh_in_p2sh(witness_script_hash, coin) -def address_multisig_p2wsh(pubkeys: list, m: int, hrp: str): +def address_multisig_p2wsh(pubkeys: List[bytes], m: int, hrp: str): if not hrp: raise AddressError( FailureType.ProcessError, "Multisig not enabled on this coin"