UTXO’s Homework
Describe what Unspent Transaction Outputs (UTXO) are.
A UTXO is the output of a transaction. If one BTC was sent to my wallet address that would create a UTXO on the network. My wallet then queries the blockchain using my private key to see which UTXO’s are sent to me. Once I use the UTXO in a new transaction it becomes a spent transaction which is classed as an input to my new transaction.
What would happen if you don’t have any single UTXO that is large enough to cover for your transaction?
If one UTXO wouldnt cover your full transaction your wallet would use several UTXO’s to create a new output large enough to cover your transaction.
Ie. I have two UTXO’s for 0.4 BTC each.
My Transaction is costing me 0.6 BTC. But I have to spend all of my 0.8 available. So I would send 0.6 to my purchase and 0.1 back to myself. The fee is calculated as Input - Output so the fee would be 0.1
How would a bitcoin wallet specify the transaction fee when creating a transaction?
It will pick the fee that it thinks is best by looking at the blockchain seeing what the previous fees were. Some wallets allow you to specify fees.
How could you use the notion of transaction inputs and outputs to increase privacy in your transaction?
I could use multiple outputs. Some of which may be legitimate spends the rest may be used to feed funds back to my wallet or other wallets I own.