26
5
There is a part of the Bitcoin protocol that I don't quite understand.
When you make a transaction, and spend the output of a previous transaction for say 1 BTC, you provide a signature using the private key matching the public key (or address) that appears in the output of the previous transaction. My first question here is what exactly is signed?
Second, when the transaction is broadcast, what prevents a malicious peer to take the input of my transaction with signature, for 1 BTC, and forge a new transaction using that same input going to their own address? To avoid that, the full transaction (including outputs) would need to be signed, I couldn't find a document indicating the whole transaction is signed.
That is good question, I'm asking the same and can't understand how outputs list is protected, it looks like outputs signed with public key, but public keys are not secure. – Vedmant – 2017-09-26T23:33:05.667
Yeah great question, I asked myself the same question but I found the answer looking all the transcations wiki. – Gopoi – 2013-01-25T23:33:30.850