Bitcoin Forum
May 08, 2024, 01:09:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [BOUNTY] 2BTC for signing a message with Electrum  (Read 3133 times)
Matthew N. Wright (OP)
Untrustworthy
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500


Hero VIP ultra official trusted super staff puppet


View Profile
August 26, 2012, 04:22:43 PM
 #1

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


1715130550
Hero Member
*
Offline Offline

Posts: 1715130550

View Profile Personal Message (Offline)

Ignore
1715130550
Reply with quote  #2

1715130550
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
The King
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
August 26, 2012, 04:44:12 PM
 #2

Make sure electrum is running so do sanitycheck: ( this is done in shell terminal or windows command promp!)

Code:
electrum 

then see what this command tells you. If not works then go to directory where you downloaded electrum and try

Code:
./electrum help signmessage
and should come back as

Code:
Signs a message with a key
Syntax: signmessage <address> <message>

If it works and you can reach electrum through terminal and get some response back then you can next do this:

Code:
electrum signmessage <address> <message>

Where is <address> put your address which one you want to prove you have control over.
Where is <message> just copy paste the full message with how many lines you need but make sure to convert it from multiple lines to one LONG line with notepad or something so it is just one huge long line instead of multiple line with space inbetween.

Hope i helped!
Address is 1EvCVytASszoUq6S7ioPaLQScjg8ptt5s9 if you feel generous.
If no works then post here and I can help again

JompinDox
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile
August 26, 2012, 08:40:55 PM
 #3

If you really need to have a multi-line message, you could just first hash it with SHA-256 (for example, here) then sign the hash!

Tips? 1ELECeJompinDox61L73eAUyaWpe3Q5HZB
Down with socks!
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
August 26, 2012, 08:53:18 PM
 #4

note: if the address you want to sign with is not in your Electrum wallet, you need to import it first:

Code:
electrum import address:privatekey

Electrum: the convenience of a web wallet, without the risks
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
August 26, 2012, 09:05:13 PM
 #5

oh, I did not see that you wanted a multi line message.
you can use \n for new lines:

Example:

Code:
./electrum signmessage 19f4RvAZDnf1RuWmHJjXte5kAtL4UN6DVc "I am a pirate\nI am not here"
HNe/7GifPcUyekwpKp9hphWZ72ZLT3LFBvZVsx4k9nxKq2CUwf/MSxTLu1vm6/pN84mdNj30YdKDHZoIaOSIDug=

and to verify:

Code:
./electrum verifymessage 19f4RvAZDnf1RuWmHJjXte5kAtL4UN6DVc HNe/7GifPcUyekwpKp9hphWZ72ZLT3LFBvZVsx4k9nxKq2CUwf/MSxTLu1vm6/pN84mdNj30YdKDHZoIaOSIDug= "I am a pirate\nI am not here"
True

Electrum: the convenience of a web wallet, without the risks
Jutarul
Donator
Legendary
*
Offline Offline

Activity: 994
Merit: 1000



View Profile
August 26, 2012, 09:34:27 PM
 #6

which OS are you using?

the electrum code doesn't handle it very well:

sign:
message = ' '.join(args[2:])
wallet.sign_message(address, message, password)

verify:
message = ' '.join(args[3:])
wallet.verify_message(address, signature, message)

If you feel fine changing the code yourself, you can replace the message= commands the following way:

for signmessage:

message = ' '.join(args[2:])


try:
    f=open(args[2],'r')
    message = f.read()
except IOError as e:
    message = ' '.join(args[2:])


for verifymessage:

message = ' '.join(args[3:])


try:
    f=open(args[3],'r')
    message = f.read()
except IOError as e:
    message = ' '.join(args[3:])


This will change the default behavior to reading the message from the file if it exists.

ADDENDUM: If you feel this is a critical feature you may want to suggest this code to the electrum developer...

The ASICMINER Project https://bitcointalk.org/index.php?topic=99497.0
"The way you solve things is by making it politically profitable for the wrong people to do the right thing.", Milton Friedman
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
August 26, 2012, 09:41:47 PM
 #7

btw, there seems to be a bug with verifymessage on Windows.
see https://bitcointalk.org/index.php?topic=50936.msg1135155#msg1135155

Electrum: the convenience of a web wallet, without the risks
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
August 26, 2012, 10:00:45 PM
 #8

follow up: apparently, on Windows you need to add quotes around the signature, like this:

Code:
./electrum verifymessage 19f4RvAZDnf1RuWmHJjXte5kAtL4UN6DVc "HNe/7GifPcUyekwpKp9hphWZ72ZLT3LFBvZVsx4k9nxKq2CUwf/MSxTLu1vm6/pN84mdNj30YdKDHZoIaOSIDug=" "I am a pirate\nI am not here"

Electrum: the convenience of a web wallet, without the risks
The King
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
August 27, 2012, 08:03:20 AM
 #9

did you solve problem? who receive bounty? Smiley
michaelmclees
Hero Member
*****
Offline Offline

Activity: 633
Merit: 500


View Profile
August 27, 2012, 12:52:35 PM
 #10

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



Were you planning on signing 10k anytime soon?
flatfly
Legendary
*
Offline Offline

Activity: 1078
Merit: 1016

760930


View Profile
August 27, 2012, 02:39:22 PM
Last edit: August 27, 2012, 03:28:11 PM by flatfly
 #11

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.
The King
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
August 28, 2012, 11:26:27 AM
 #12

so who got the bounty?
my address is 1EvCVytASszoUq6S7ioPaLQScjg8ptt5s9
i hoped to win 2BTC for helping but what happen Cry
i though bounty supposed to be given out-amirite?
Matthew N. Wright (OP)
Untrustworthy
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500


Hero VIP ultra official trusted super staff puppet


View Profile
August 28, 2012, 11:39:57 AM
 #13

so who got the bounty?
my address is 1EvCVytASszoUq6S7ioPaLQScjg8ptt5s9
i hoped to win 2BTC for helping but what happen Cry
i though bounty supposed to be given out-amirite?


Sent! (I'll be using Bitcoin-QT afterall but I pay my bounties regardless ^^. Cheers!)

Thanks everyone. Electrum is apparently no where near user friendly enough to use.

The King
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
August 28, 2012, 12:05:00 PM
 #14

so who got the bounty?
my address is 1EvCVytASszoUq6S7ioPaLQScjg8ptt5s9
i hoped to win 2BTC for helping but what happen Cry
i though bounty supposed to be given out-amirite?


Sent! (I'll be using Bitcoin-QT afterall but I pay my bounties regardless ^^. Cheers!)

Thanks everyone. Electrum is apparently no where near user friendly enough to use.
received. many thx!
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
August 28, 2012, 02:46:42 PM
 #15

so who got the bounty?
my address is 1EvCVytASszoUq6S7ioPaLQScjg8ptt5s9
i hoped to win 2BTC for helping but what happen Cry
i though bounty supposed to be given out-amirite?


Sent! (I'll be using Bitcoin-QT afterall but I pay my bounties regardless ^^. Cheers!)

Thanks everyone. Electrum is apparently no where near user friendly enough to use.

Just trust that we are working every day to make it better. Building verification/signing into the GUI is pretty high on my list Smiley

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!