remove msas (always allowed) remove unsort_ms (always allowed) rework fake_txn # Conflicts: # cli/signit.py # releases/ChangeLog.md # releases/History-Mk4.md # releases/Next-ChangeLog.md # releases/signatures.txt # shared/actions.py # shared/address_explorer.py # shared/auth.py # shared/backups.py # shared/chains.py # shared/decoders.py # shared/descriptor.py # shared/display.py # shared/export.py # shared/flow.py # shared/lcd_display.py # shared/multisig.py # shared/nfc.py # shared/notes.py # shared/nvstore.py # shared/ownership.py # shared/paper.py # shared/psbt.py # shared/qrs.py # shared/seed.py # shared/serializations.py # shared/utils.py # shared/ux.py # shared/ux_mk4.py # shared/ux_q1.py # shared/version.py # shared/wallet.py # shared/xor_seed.py # stm32/COLDCARD_MK4/file_time.c # stm32/COLDCARD_Q1/file_time.c # stm32/MK4-Makefile # stm32/Q1-Makefile # testing/conftest.py # testing/helpers.py # testing/test_address_explorer.py # testing/test_backup.py # testing/test_bbqr.py # testing/test_export.py # testing/test_msg.py # testing/test_multisig.py # testing/test_notes.py # testing/test_ownership.py # testing/test_sign.py # testing/test_unit.py # testing/txn.py
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
# (c) Copyright 2020 by Coinkite Inc. This file is covered by license found in COPYING-CC.
|
|
#
|
|
# Load up the simulator w/ indicated list of seed words
|
|
#
|
|
from sim_settings import sim_defaults
|
|
import stash, chains
|
|
from pincodes import pa
|
|
from glob import settings
|
|
import stash
|
|
from seed import set_seed_value, PassphraseMenu
|
|
from utils import xfp2str
|
|
from actions import goto_top_menu
|
|
from nvstore import SettingsObject
|
|
|
|
tn = chains.BitcoinTestnet
|
|
|
|
stash.bip39_passphrase = ''
|
|
settings.current = sim_defaults
|
|
|
|
import main
|
|
pa.tmp_value = None
|
|
PassphraseMenu.pp_sofar = ''
|
|
SettingsObject.master_sv_data = {}
|
|
SettingsObject.master_nvram_key = None
|
|
set_seed_value(main.WORDS)
|
|
stash.SensitiveValues.clear_cache()
|
|
|
|
settings.set('chain', 'XTN')
|
|
settings.set('words', len(main.WORDS))
|
|
settings.set('terms_ok', True)
|
|
settings.set('idle_to', 0)
|
|
|
|
print("TESTING: New key in effect [%s]: %s..%s = %s" % (
|
|
xfp2str(settings.get('xfp', 0)), main.WORDS[0], main.WORDS[-1],
|
|
settings.get('xpub', 'MISSING')))
|
|
|
|
# impt: if going from xprv => seed words, main menu needs updating
|
|
goto_top_menu()
|
|
|