def init_trezor(self): """ Initialize new trezor instance :return: """ trez = token.TokenLite() trez.creds = self.get_creds() return trez
def init_trezor(self, lite=True): """ Initialize new trezor instance :return: """ trez = trezor.Trezor() if not lite else token.TokenLite() trez.creds = self.get_creds() return trez
def init_trezor(self, creds=None): """ Initialize new trezor instance :type creds: object :return: """ trez = token.TokenLite() trez.creds = self.get_creds() if creds is None else creds return trez
def init_with_keys(self, priv_spend_key, priv_view_key): """ Initializes Trezor classes with the private keys :return: """ self.creds = monero.AccountCreds.new_wallet(priv_view_key, priv_spend_key, self.network_type) self.update_intro() self.trez = token.TokenLite() self.trez.creds = self.creds self.trez.iface = self.trez_iface self.update_prompt()