What is message signing?
Message signing is a way for you to prove ownership of a particular address, and demonstrate you have control of the funds.
Why sign?
Signing is an easy way of assuring that something is being done by the correct person or contract. Unlike physical signatures, digital signatures cannot be faked so you can always be sure that an action was completed by the correct person.
Etherscan
Message signing can be done easily with Etherscan’s “Verify New Message Signature” feature.
1. Go to the Verify New Message Signature tool.
2. Provide the Ethereum address you would like to sign with.
3. Provide the message Signature hash and the original message that is being signed.
4. Click Verify and Save from the drop-down menu.
5. Submit.
Blockchain App
In the popular wallet app, Blockchain, message signing is quite simple. To sign a message,
1. Go to Settings -> Addresses
2. Scroll down to choose the desired address.
3. Click More Options -> Sign Message.
Note: this is currently only available for imported addresses, but will be added to all addresses in the future.
Technical Explanation
The following method creates an Ethereum-specific signature with:
sign(keccak256(“\x19Ethereum Signed Message:\n” + len(message) + message))).
Adding a prefix to the message will make the signature recognizable as an Ethereum-specific signature. This would prevent any fraud or misuse where a malicious DAPP could sign random data (such as a transaction) and use the signature to impersonate the victim. Note: the address to sign with should be unlocked for this to work.