Example #1
0
 def setUp(self) -> None:
     self.keypair = KeyPair.load(
         path=os.path.join(SAMPLES_DIR, 'keys_raw.json'), is_binary=False)
     self.target_abi = Abi.from_path(
         path=os.path.join(SAMPLES_DIR, 'DebotTarget.abi.json'))
     with open(os.path.join(SAMPLES_DIR, 'DebotTarget.tvc'), 'rb') as fp:
         self.target_tvc = base64.b64encode(fp.read()).decode()
Example #2
0
 def open_key(self):
     path_to_file, _ = QFileDialog.getOpenFileName(self, self.tr("Load keys"), self.tr("~/Desktop/"),
                                                   self.tr("Keys (*.keys.json)"))
     key = KeyPair.load(path_to_file,True)
     self.main_key = key
     self.public_key.setText(QCoreApplication.translate("MainWindow", u'public_key: ' + key.public))