|
|
@ -685,24 +685,9 @@ class BaseWizard(Logger): |
|
|
|
def show_xpub_and_add_cosigners(self, xpub): |
|
|
|
self.show_xpub_dialog(xpub=xpub, run_next=lambda x: self.run('choose_keystore')) |
|
|
|
|
|
|
|
def choose_seed_type(self, message=None, choices=None): |
|
|
|
title = _('Choose Seed type') |
|
|
|
if message is None: |
|
|
|
message = ' '.join([ |
|
|
|
_("The type of addresses used by your wallet will depend on your seed."), |
|
|
|
_("Segwit wallets use bech32 addresses, defined in BIP173."), |
|
|
|
_("Please note that websites and other wallets may not support these addresses yet."), |
|
|
|
_("Thus, you might want to keep using a non-segwit wallet in order to be able to receive bitcoins during the transition period.") |
|
|
|
]) |
|
|
|
if choices is None: |
|
|
|
choices = [ |
|
|
|
('create_segwit_seed', _('Segwit')), |
|
|
|
('create_standard_seed', _('Legacy')), |
|
|
|
] |
|
|
|
self.choice_dialog(title=title, message=message, choices=choices, run_next=self.run) |
|
|
|
|
|
|
|
def create_segwit_seed(self): self.create_seed('segwit') |
|
|
|
def create_standard_seed(self): self.create_seed('standard') |
|
|
|
def choose_seed_type(self): |
|
|
|
seed_type = 'standard' if self.config.get('nosegwit') else 'segwit' |
|
|
|
self.create_seed(seed_type) |
|
|
|
|
|
|
|
def create_seed(self, seed_type): |
|
|
|
from . import mnemonic |
|
|
|