Homework on Bitcoin Transactions and UTXO - Questions
-
Describe what Unspent Transaction Outputs (UTXO) are.
In essence, a UTXO can be spent as an input in a subsequent transaction. Your always need a UTXO or an unspent transaction output to make a transaction. If you don’t have an unspent transaction output (OTXO) , it simply means you don’t have any Bitcoin. -
What would happen if you don’t have any single UTXO that is large enough to cover for your transaction?
If a single UTXO isn’t large enough to satisfy the demand of the input amount, then the WALLET will use a second, a third, etc until the total is greater than or equal to the amount you’re sending. This is because the Bitcoin protocol requires that any UTXO must be completely spent if it’s used to fulfil the total input requirement. You simply cannot divide UTXOs. The difference is sent back to you as “change” during the transaction, put simply the “change” is represented as a newly created UTXO assigned to you. -
How would a bitcoin wallet specify the transaction fee when creating a transaction?
Lets say A = Inputs and B = Output and A = 3 BTC and B = 2.5 BTC. (Eg A = 3 and B = 2.5).
We know that A has to be greater than or equal to B to have a valid transaction. Now, If A is greater then B (as describe above), then the transaction fee would equal A - B = TX fee. (or 3 - 2.5 = 0.5) -
How could you use the notion of transaction inputs and outputs to increase privacy in your transaction?
On one or more output you could specify a condition that only the person who has the private key that match the public key can receive the transaction. An output could be sent to the sender input which would have a different address and no one knows the private key except the private key owner.