コード例 #1
0
 def create_wallet(self, text, password):
     if self.wallet_type == 'standard':
         self.wallet = Wallet.from_text(text, password, self.storage)
         self.run('create_addresses')
     elif self.wallet_type == 'multisig':
         self.storage.put('wallet_type', self.multisig_type)
         self.wallet = Multisig_Wallet(self.storage)
         self.wallet.add_cosigner('x1/', text, password)
         self.stack = []
         self.run('show_xpub_and_add_cosigners', (password,))
コード例 #2
0
ファイル: base_wizard.py プロジェクト: zeroharbor/electrum
 def create_wallet(self, text, password):
     if self.wallet_type == 'standard':
         self.wallet = Wallet.from_text(text, password, self.storage)
         self.run('create_addresses')
     elif self.wallet_type == 'multisig':
         self.storage.put('wallet_type', self.multisig_type)
         self.wallet = Multisig_Wallet(self.storage)
         self.wallet.add_seed(text, password)
         self.wallet.create_master_keys(password)
         self.run_wallet()
コード例 #3
0
 def create_hardware_multisig(self):
     self.storage.put('wallet_type', self.multisig_type)
     self.wallet = Multisig_Wallet(self.storage)
     # todo: get the xpub from the plugin
     self.run('create_wallet', xpub, None)