Feathercoin-Foundation / electrum-ftc

Electrum-FTC; Feathercoin thin client. Follows upstream by rebasing FTC patches. Tags remain stable.
MIT License
10 stars 8 forks source link

Addresses Tab -> Encrypt/Decrypt -> When Public key is made invalid/blank, proper error message should be displayed #64

Open Anilkumar18 opened 6 years ago

Anilkumar18 commented 6 years ago

Expected Behavior

Addresses Tab -> Encrypt/Decrypt -> When Public key is made invalid/blank, proper error message should be displayed

Current Behavior

Addresses Tab -> Encrypt/Decrypt -> When Public key is made invalid/blank, error message is displayed but not clear to the user

Possible Solution

Steps to Reproduce

1.Open a wallet 2.Go to addresses tab,right click on a particular address and select encrypt/decrypt in the pop up 3.In the encrypt/decrypt window enter text in message text field blank, remove the public key/edit it with a new character and click on Encrypt 4.Application throws an error msg "Non-Hexdecimal number found in hexarg() at position 66".It can be a meaningful message that is understandable by the user.

decrypt_error

Context

User understable error message such as "Invalid Public Key" can be displayed instead

Your Environment

Note : Issue exists in Bitcoin also