message signing with BTC adress?
Is this possible with Copay? Did not find the option yet..
No, it is not.
Thanks! Thats really a swift reply..
Regards, Antoon.
-----Original Message----- From: "dabura667" [email protected] Sent: 1/2/2016 18:53 To: "bitpay/copay" [email protected] Cc: "abarents" [email protected] Subject: Re: [copay] message signing with BTC adress? (#3734)
No, it is not. — Reply to this email directly or view it on GitHub.
Is there perhaps some kind of workaround for this? The idea I had is to export the address(es) into another wallet program that can do the signing function. I tried this but it seems other programs don't want to use the .aes.json file. Suggestions?
Yes, there are workarounds. You can use recovery tool to extract private keys from backup file, or from seed. Then you could import those keys into Bitcoin Core, Electrum, or any other wallet that supports signing.
Just created an issue to suggest that coinb.in add this to their browser tool: https://github.com/OutCast3k/coinbin/issues/38
also check this repo https://github.com/bitpay/bitcore-message
Given that its only 4 lines of code to sign a message, I don't see much reason not to add this functionality into copay
var bitcore = require('bitcore-lib');
var Message = require('bitcore-message');
var privateKey = bitcore.PrivateKey.fromWIF('cPBn5A4ikZvBTQ8D7NnvHZYCAxzDZ5Z2TSGW2LkyPiLxqYaJPBW4');
var signature = Message('hello, world').sign(privateKey);
XBTdev, thanks for your helpful input. What exactly is "recovery tool" and how does one use it to extract private keys from a backup file or seed?
This is the recovery tool: http://bitpay.github.io/copay-recovery/
You can input your seed (for newer backups), or the backup file and password (older backup format) and it will generate the private keys for you.
Then you can import them into Electrum or Core or some wallet that supports message signing.
Strange, it's telling me it can't decrypt the private key even I just went and reset the password for it in Copay. Using the .aes.json file generated from the "export wallet" option in Copay should work fine for this recovery tool, right?
Try exporting the wallet json again from Settings > Advanced > Export Wallet
The recovery tool will require two passwords. The export password, and the spending password. You'll need to enter both to decrypt your private keys.
Also, I would highly recommend moving all funds to a new copay wallet that uses the new backup format (a seed instead of json file).
Update: found this and it works well https://github.com/weex/bitcoin-signature-tool
thanks for sharing.
On Thu, Jan 14, 2016 at 1:46 AM, XBTdev [email protected] wrote:
Update: found this and it works well https://github.com/weex/bitcoin-signature-tool
— Reply to this email directly or view it on GitHub https://github.com/bitpay/copay/issues/3734#issuecomment-171528853.
BitPay.com
I tried the recovery tool again with a new backup file and it worked this time (instead of saying it couldn't decrypt the private key like before). But all it did was give me the ability to transfer funds from the wallet to a new address. So it must be getting the private keys from the backup to be able to transfer funds, but it gives me no easy way of getting the private keys, so I'm not any closer to being able to sign a message.
What is the use case for this?
With this You could "sign" a message to prove you are the owner of a btc address. So the one paying has the assurance he is paying the right guy...
Quite usefull...
-----Original Message----- From: "Matias Alejo Garcia" [email protected] Sent: 1/15/2016 15:19 To: "bitpay/copay" [email protected] Cc: "abarents" [email protected] Subject: Re: [copay] message signing with BTC adress? (#3734)
What is the use case for this? — Reply to this email directly or view it on GitHub.
What is the use case for this?
I've had to use it twice to prove I was the account owner on an exchange before they would reset 2fa. Its also very useful if you want a legally binding digitally signed contract from someone holding bitcoins. Its quite useful I think... definitely worth adding under advanced > wallet info > $address > Sign message
FYI, this thread is the same as previously closed thread #1537
What is the use case for this?
srsly?
So the one paying has the assurance he is paying the right guy...
This is not a valid use case, if the goal is to protect from MITM attacks, bitcoin message signing alone is not enough.
- This would indicate that the people have reason to believe there is an active MITM attack going on.
- Alice wants to be sure Bob's address is really Bob's.
- Bob signs 1ABC with the private key and sends it to Alice.
- Eve intercepts this, signs 1DEF with her private key and sends 1DEF with the signature along to Alice.
- Alice sees 1DEF signing their message, believes it's Bob's and sends the money.
- MITM attack successful.
You could "sign" a message to prove you are the owner of a btc address.
This use case is a sort of "receipt to prove that you are the sender of bitcoin." But imagine the following situation and tell me whether you think the outcome is acceptable for the person asking proof.
- Bob wants proof of ownership of at least 100 BTC before giving a loan. (Assume Bob thinks "signing a message to prove you are the owner of a btc address" is enough proof)
- Alice pays Eve, who owns 5000 BTC, in order to sign the message on Alice's behalf using Eve's address.
- Bob sees the address signed having 5000 BTC and gives Alice the loan.
However, some websites / services who are "the cool hip crypto crowd" ask for signatures from their customers. So I understand why it would be nice.
It is not secure though.
To be complete, there should be both message signing and verification.
Descriptions: https://www.reddit.com/r/Bitcoin/comments/18qy88/bitcoin_message_signing_and_verification/
https://multibit.org/en/help/v0.5/help_signAndVerifyMessage.html
Some use cases: https://bitcointalk.org/index.php?topic=70911.msg813815#msg813815