mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
Altered the do_encrypt warning message
changed the protection against public_key
This commit is contained in:
parent
ece457627b
commit
0a24c820bb
1 changed files with 5 additions and 4 deletions
|
@ -2244,11 +2244,12 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
message = message.encode('utf-8')
|
message = message.encode('utf-8')
|
||||||
try:
|
try:
|
||||||
public_key = ecc.ECPubkey(bfh(pubkey_e.text()))
|
public_key = ecc.ECPubkey(bfh(pubkey_e.text()))
|
||||||
encrypted = public_key.encrypt_message(message)
|
|
||||||
encrypted_e.setText(encrypted.decode('ascii'))
|
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
traceback.print_exc(file=sys.stdout)
|
traceback.print_exc(file=sys.stdout)
|
||||||
self.show_warning("Invalid Public key")
|
self.show_warning(_('Invalid Public key'))
|
||||||
|
return
|
||||||
|
encrypted = public_key.encrypt_message(message)
|
||||||
|
encrypted_e.setText(encrypted.decode('ascii'))
|
||||||
|
|
||||||
def encrypt_message(self, address=''):
|
def encrypt_message(self, address=''):
|
||||||
d = WindowModalDialog(self, _('Encrypt/decrypt Message'))
|
d = WindowModalDialog(self, _('Encrypt/decrypt Message'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue