Browse Source

Altered the do_encrypt warning message

changed the protection against public_key
3.2.x
Anilkumar18 7 years ago
committed by GitHub
parent
commit
0a24c820bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      gui/qt/main_window.py

9
gui/qt/main_window.py

@ -2244,11 +2244,12 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
message = message.encode('utf-8')
try:
public_key = ecc.ECPubkey(bfh(pubkey_e.text()))
encrypted = public_key.encrypt_message(message)
encrypted_e.setText(encrypted.decode('ascii'))
except BaseException as e:
traceback.print_exc(file=sys.stdout)
self.show_warning("Invalid Public key")
traceback.print_exc(file=sys.stdout)
self.show_warning(_('Invalid Public key'))
return
encrypted = public_key.encrypt_message(message)
encrypted_e.setText(encrypted.decode('ascii'))
def encrypt_message(self, address=''):
d = WindowModalDialog(self, _('Encrypt/decrypt Message'))

Loading…
Cancel
Save