Bitcoin Forum
November 19, 2024, 01:53:04 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: "Sign Message" and "Verify Message" working  (Read 1474 times)
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
May 30, 2013, 03:07:01 PM
 #1

I have got "Sign Message" and "Verify Message" working.
This is pretty similar functionality to the Satoshi client.

Screenshots:






I have only just got them working so there is all the field validation, finishing off to do yet.
I expect they will appear in the next version, 0.5.11

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
freemoney458
Member
**
Offline Offline

Activity: 62
Merit: 10


View Profile
May 30, 2013, 08:00:53 PM
 #2

Hi Jim,

that is a very nice feature, Jim.

Please forgive me my noob questions:

How is the signature created?
Is it possible to derive from the signature the private keys?
Does a signed message cost something?
Who receives the signed message?
Is it send to the whole bitcoin network?
Or do I have to copy it to e.g. an email?

Could you come up with some use cases?

Is it possible to verify that a payment address is untampered by an attacker?
How would this work?

Is it possible to set up contracts?
How would this work?

Is it possible to proove that I control a specified address?
How would this work?

Is it possible to create multisignature addresses with this feature?
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
May 30, 2013, 10:05:03 PM
 #3

Hi Freemoney,

It is quite similar to other signing algorithms, in that you take the message, hash it and then use the same 'Bitcoin signing' (ECDSA) that is does for transactions to create a signature. This uses the private key of the address you choose. From the signature you can work out the address used to sign it but not the private key.

It costs nothing and nothing is sent to the network. Everything is performed locally.

One of the uses of signatures at the moment is with the addresses used for mining dues. Say I have some mining dues going to an address 1abc and I want to change it to an address 1def. The mining pool want to know I own the private key for address 1abc. If I write a message:

I own the address 1abc and from now on want all the mining dues to go to address 1def

And then sign it with address 1abc the mining pool knows it is legitimate.

You can use it like PGP signing if you have a well known address. For instance I have a donations address on multibit.org. I can sign messages (say multibit release messages) with it and other users can check it.

One of the things I am going to program up is that the 'there is a new version of multibit' file will be signed. That way MultiBit can check it is legitimate when it accesses it.

Initially it will be signed by the multibit.org donation address but it will be subsequently threshold signed '2 of 3' by myself, Tim Molter and Gary Rowe. It will need 2 or more valid signatures from specific addresses controlled by Gary, Tim and I before the message is believed.

It is a general purpose signing technique so you can use it anywhere you want a cryptographic signature of a message.

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
mjb
Newbie
*
Offline Offline

Activity: 44
Merit: 0


View Profile
June 12, 2013, 09:55:59 PM
 #4

This is great - the last missing feature that forced me to open the satoshi client from time to time!

Donation underway...
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
June 13, 2013, 08:58:05 AM
 #5

Thanks !

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
lunarboy
Hero Member
*****
Offline Offline

Activity: 544
Merit: 500



View Profile
November 30, 2013, 06:10:45 PM
 #6


Hi Jim

Any idea why I can't copy or paste into any of the sign or verify address/message/signature fields? its been causing me headaches for a while now.

Is there a way to turn on this ability as it seems deliberately restricted?

Thanks

Lunar
filchef
Full Member
***
Offline Offline

Activity: 137
Merit: 100


View Profile
November 30, 2013, 10:00:57 PM
 #7


Hi Jim

Any idea why I can't copy or paste into any of the sign or verify address/message/signature fields? its been causing me headaches for a while now.

Is there a way to turn on this ability as it seems deliberately restricted?

Thanks

Lunar

With key combination Ctrl+v you can paste address with Ctrl+c you can copy signature and message - first you have to mark them with mouse.
lunarboy
Hero Member
*****
Offline Offline

Activity: 544
Merit: 500



View Profile
November 30, 2013, 10:49:04 PM
Last edit: January 05, 2014, 12:56:25 AM by lunarboy
 #8


Hi Jim

Any idea why I can't copy or paste into any of the sign or verify address/message/signature fields? its been causing me headaches for a while now.

Is there a way to turn on this ability as it seems deliberately restricted?

Thanks

Lunar

With key combination Ctrl+v you can paste address with Ctrl+c you can copy signature and message - first you have to mark them with mouse.

have you tried turning it on and off again?  Wink

no seriously... running the 0.5.15 version on OSX  copy and paste in these fields is not currently possibly. Maybe its a bug?

edit: fixed now, think it was an issue with the mavericks update.
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!