core/bitcoin: move BITCOIN_NAMES to common

pull/1140/head
matejcik 4 years ago committed by matejcik
parent 8f8e793155
commit 407375b0c4

@ -12,6 +12,9 @@ if False:
from trezor.messages.TxInputType import EnumTypeInputScriptType
from trezor.messages.TxOutputType import EnumTypeOutputScriptType
BITCOIN_NAMES = ("Bitcoin", "Regtest", "Testnet")
# Default signature hash type in Bitcoin which signs all inputs and all outputs of the transaction.
SIGHASH_ALL = const(0x01)

@ -6,6 +6,7 @@ from trezor.messages.TxRequest import TxRequest
from apps.common import coininfo, paths, seed
from ..common import BITCOIN_NAMES
from ..keychain import with_keychain
from . import bitcoin, helpers, layout, progress
@ -16,9 +17,6 @@ if False:
from typing import Type, Union
BITCOIN_NAMES = ("Bitcoin", "Regtest", "Testnet")
@with_keychain
async def sign_tx(
ctx: wire.Context, msg: SignTx, keychain: seed.Keychain, coin: coininfo.CoinInfo

Loading…
Cancel
Save