Bitcoin Forum

Bitcoin => Wallet software => Topic started by: ferjamartini on August 24, 2018, 02:45:42 PM



Title: Bitcpoin - Security that the output was not altered
Post by: ferjamartini on August 24, 2018, 02:45:42 PM
Can someone remove the following doubt?

If the output of a transaction is not digitally signed, how can it be prevented that someone, in the network, intercepts the message and changes the direction of the output before a miner accepts it?

thanks.


Title: Re: Bitcpoin - Security that the output was not altered
Post by: ranochigo on August 24, 2018, 03:27:13 PM
The signature encompasses the output script and the amount too. Essentially, the signature will contain all of the transaction data (except the scriptsig and the signature itself), the output script is not excluded. The signature basically proves the ability of the transaction to spend the UTXO as well as the transaction outputs. If the transaction output is modified, the signature will not validate and thus the transaction would become invalid.