Bitcoin Transaction Protocol Question (maybe specific to Coursera Bitcoin Lecture)
Bitcoin Transaction Protocol Question (maybe specific to Coursera Bitcoin Lecture) In the Coursera course "Bitcoin and Cryptocurrency Technologies" course, a coin called ScroogeCoin was introduced. This coin is similar to bitcoin in that each transaction consists of a set of inputs and outputs. Inputs point to outputs from previous transactions with corresponding signatures, and outputs contain the value and address the value is applied to. The protocol checks that (sum of input values) - (sum of output values) >= 0, and this difference is the transaction fee. I feel that this condition is too loose and there may be a potential problem. For example, suppose Alice has a coin of value 50 and spends 100, while Bob has a coin of value 100 and spends 50. Both of these are in the same transaction. Then the protocol would allow this to pass. I feel that the protocol should check instead For all addresses, (sum of input values from address) - (sum of output values that is spe...