Here's a 2BTC bounty for anyone who can explain from start to finish how to sign a message from a bitcoin address in electrum. The following assumptions should be made before answering:
- This is the first time I've used Electrum desktop client
- The message needing to be signed is multi-lined
- I must use Electrum, nothing else
By the way, if you are using the Windows builds, note that you need to open the text console first, by holding the SHIFT key down on your keyboard while launching Electrum.
Apart from that, the above posts pretty much nailed it, but I will summarize the process from start to finish:
A. To sign a message using an imported address:1. Hold SHIFT down while launching Electrum
2. Import your address by typing:
e -o import 1YourBitcoinAddress:5YourPrivateKey
3. In the virtual console that has appeared, type:
e signmessage 1YourBitcoinAddress "MessageLine1\nMessageLine2\nMessageLine3"
This should output the base64-encoded cryptographic signature.
B. To verify a signed message:1. Hold SHIFT down while launching Electrum
2. In the virtual console that has appeared, type:
e verifymessage 1YourBitcoinAddress "TheSignature" "MessageLine1\nMessageLine2\nMessageLine3"
(Be sure to include the quotes.)
If successful, this must return True.
Note that all of the above can be performed on a non-networked computer, if preferred.
PS: hopefully in a future release, these commands will be accessible from the graphical interface. For now, they are only available through the advanced console.