1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 05:18:08 +00:00

core/bitcoin: move BITCOIN_NAMES to common

This commit is contained in:
matejcik 2020-07-14 12:14:41 +02:00 committed by matejcik
parent 8f8e793155
commit 407375b0c4
2 changed files with 4 additions and 3 deletions

View File

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

View File

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