Example #1
0
 def init_trezor(self):
     """
     Initialize new trezor instance
     :return:
     """
     trez = token.TokenLite()
     trez.creds = self.get_creds()
     return trez
Example #2
0
 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
Example #3
0
 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
Example #4
0
    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()