Author

Topic: Signing a message with a private key (Read 198 times)

sr. member
Activity: 1260
Merit: 390
★Bitvest.io★ Play Plinko or Invest!
March 27, 2018, 03:05:51 PM
#10
Most of the people who told you about Signing a message is correct and will really help you out and I just would like to add up.

Signing a message with a private key is one of the best identifier here in the forum in case your account get hack by someone.
Theymos posted it here


You can verify signed messages here https://tools.bitcoin.com/verify-message/

legendary
Activity: 2912
Merit: 2066
Cashback 15%
March 27, 2018, 06:01:08 AM
#9
Thanks for all the replies. Smiley

So if i send you some bitcoin and i sign a message.... like..."hello from Irukandji". Only the receiver will be able to see it?  And will it remain somewhere for ever or be deleted?

It will only remain in the blockchain if you craft a special transaction as mentioned by mocacinno above.

While asymmetric encryption is sometimes used to ensure that only the receiver can decrypt the message, the use case you've been asking about is only about verifying the identity of the signer and the integrity of the message: https://simple.wikipedia.org/wiki/Digital_signature

Note that sending bitcoins is technically not different from signing a message -- the message effectively being "Irukandji is sending X BTC to Y".
legendary
Activity: 3402
Merit: 5004
https://merel.mobi => buy facemasks with BTC/LTC
March 27, 2018, 01:45:43 AM
#8
Thanks for all the replies. Smiley

So if i send you some bitcoin and i sign a message.... like..."hello from Irukandji". Only the receiver will be able to see it?  And will it remain somewhere for ever or be deleted?

starmyc already answered the first part of your question: he's correct, signing is not equal to encrypting.
As for the second part of your question: a signed message is just a piece of ascii text, it isn't automatically stored on the blockchain. Usually, you send a signed message to somebody to proof you own the private key to a certain (staked) address. The message will exist as long as you and the receiver don't delete said message from your sent messages/inbox (or whatever other way you used to send the signed message).

You CAN include some text in a transaction using op_return, but this is rather technical, you'd have to craft a transaction in a "non-standard" way in order to do this. (with non-standard, i mean that if you use a standard wallet like core or electrum in a standard-gui way, there won't be an option available afaik)
here's a funny website to look at op_return's in some of the latest transactions: http://coinsecrets.org/
full member
Activity: 198
Merit: 130
Some random software engineer
March 27, 2018, 01:41:44 AM
#7
Signing is not encryption. When you sign a message, you guarantee anyone that you and only you wrote it and sign it. The message can't be changed or the signature will become invalid. But the message won't be encrypted, and then everybody who gets it will be able to read it.

In Bitcoin, spent transactions are signed to prove than only the owner of the private key want to spend the transaction. But the transaction will still be clear and everybody will be able to see it (that's why the blockchain is said "public"). There is no encryption involved in Bitcoin (Edit: besides encrypting the wallet.dat file).
sr. member
Activity: 629
Merit: 258
March 27, 2018, 01:19:56 AM
#6
Thanks for all the replies. Smiley

So if i send you some bitcoin and i sign a message.... like..."hello from Irukandji". Only the receiver will be able to see it?  And will it remain somewhere for ever or be deleted?
legendary
Activity: 1834
Merit: 1036
March 26, 2018, 10:48:52 PM
#5
Where do you write the message and where do you send it to?
Here's a complete step by step information on how to sign a message depending on what you are going to use. This is being updated from time to time by shorena https://bitcointalksearch.org/topic/how-to-sign-a-message-990345
legendary
Activity: 2324
Merit: 6006
bitcoindata.science
March 26, 2018, 10:45:51 PM
#4
Where do you write the message and where do you send it to?

There are many wallets that are able to sign messages, and many that are not.

Segwit addresses can sign messages, but there is no standard to verify, so it's better to use a Legacy address (starting with 1).

The easiest way to sign I think is using Coinomi. Just download Coinomi Wallet, click on the upper right corner and choose sign message

                                         

More details here:
https://medium.com/@bytether/how-to-sign-a-message-with-a-coinomi-android-wallet-9ebdda63e912
Images from the site above.
sr. member
Activity: 629
Merit: 258
March 26, 2018, 10:39:51 PM
#3
To sign a message with a private key is to provide cryptographic proof that the message signed is coming from the person in control of the private key. For example, if you sign a message with the private key belonging to one of your Bitcoin addresses, anybody could tell that the owner of a certain Bitcoin address (you) was the one that wrote that message.

Where do you write the message and where do you send it to?
hero member
Activity: 854
Merit: 658
rgbkey.github.io/pgp.txt
March 26, 2018, 10:22:44 PM
#2
To sign a message with a private key is to provide cryptographic proof that the message signed is coming from the person in control of the private key. For example, if you sign a message with the private key belonging to one of your Bitcoin addresses, anybody could tell that the owner of a certain Bitcoin address (you) was the one that wrote that message.
sr. member
Activity: 629
Merit: 258
March 26, 2018, 10:00:38 PM
#1
Gavin Andresen said that CSW used
Quote
the private key from the very first bitcoin block
  and signed messages with it.
https://www.youtube.com/watch?v=pNZyRMG2CjA

I send Bitcoin using private keys, but what does it mean to sign a message with a private key?
Jump to: