def on_restore(self, text): if keystore.is_address_list(text): self.wallet = Imported_Wallet(self.storage) for x in text.split(): self.wallet.add_address(x) self.terminate() elif keystore.is_private(text): self.add_password(text) else: self.create_keystore(text, None)
def on_import_addresses(self, text): assert keystore.is_address_list(text) self.wallet = Imported_Wallet(self.storage) for x in text.split(): self.wallet.import_address(x) self.terminate()